xoops forums

frankblack

Just can't stay away
Posted on: 2009/7/30 14:24
frankblack
frankblack (Show more)
Just can't stay away
Posts: 830
Since: 2005/6/13
#11

Re: PHP-Debugging without XOOPS

For those who want to know which files were included with include or require, have to insert the following code into class/logger/render.php after $ret=''; (line 218):

$this->addExtra'Included files'count get_included_files() ) . ' files' );

$included_files get_included_files();

foreach (
$included_files as $filename) {
    
$this->addExtra('Included file: '$filename);
}


to be continued...

frankblack

Just can't stay away
Posted on: 2009/7/31 19:45
frankblack
frankblack (Show more)
Just can't stay away
Posts: 830
Since: 2005/6/13
#12

Re: PHP-Debugging without XOOPS

This special debugger has become a project at dev.xoops.org called xoopsfirephp.

Please use the trackers there for feedback.

trabis

Core Developer
Posted on: 2009/7/31 19:54
trabis
trabis (Show more)
Core Developer
Posts: 2268
Since: 2006/9/1 1
#13

Re: PHP-Debugging without XOOPS

I did not look into this but I will!
I hope we can make an abstract logger class so we can add new logger packages without having to hack core.

Keep up the good work

frankblack

Just can't stay away
Posted on: 2009/8/3 16:28
frankblack
frankblack (Show more)
Just can't stay away
Posts: 830
Since: 2005/6/13
#14

Re: PHP-Debugging without XOOPS

V1.1 is released

Release V1.1:
+ language defines for german and english
+ beautified a bit
+ Bugfix: Fatal errors are now catched as white page, Fatal errors will be now displayed. This wasn't the case in V1.0. I have no clue how to prevent this behaviour, because once the script is "dead" no more messages are passed to FirePHP.
+ Warning in xoopslogger.php suppressed

Docs for developers will be added soon.

frankblack

Just can't stay away
Posted on: 2009/8/8 16:44
frankblack
frankblack (Show more)
Just can't stay away
Posts: 830
Since: 2005/6/13
#15

Re: PHP-Debugging without XOOPS

V1.3 is released with some bug fixes and an upgrader for those who have 1.1 or 1.2 already installed. See the txt inside the package.

Added a debug mode for admins only. So right now we have enough debug modes I guess.

Who dares can add an instance of the debugger to mainfile.php and you get some interesting results.

kaotik

Just can't stay away
Posted on: 2009/8/8 16:49
kaotik
kaotik (Show more)
Just can't stay away
Posts: 861
Since: 2004/2/19
#16

Re: PHP-Debugging without XOOPS

Great job with this!! I was actually downloading easyeclipse so I could use the debugger. I'll try this first.
Thanks!

frankblack

Just can't stay away
Posted on: 2009/8/8 16:53
frankblack
frankblack (Show more)
Just can't stay away
Posts: 830
Since: 2005/6/13
#17

Re: PHP-Debugging without XOOPS

There is somewhere on the internet a description on how to connect firebug/firephp with eclipse. But for me it was too much hassle, so I did not try.

I use eclipse with phpeclipse, plus Firefox with my debugger. So with this combination most things get solved.

kaotik

Just can't stay away
Posted on: 2009/8/8 16:59
kaotik
kaotik (Show more)
Just can't stay away
Posts: 861
Since: 2004/2/19
#18

Re: PHP-Debugging without XOOPS

which version of eclipse would you recommend? I was downloading EasyEclipse for LAMP http://www.easyeclipse.org/site/distributions/lamp.html

kaotik

Just can't stay away
Posted on: 2009/8/8 17:05
kaotik
kaotik (Show more)
Just can't stay away
Posts: 861
Since: 2004/2/19
#19

Re: PHP-Debugging without XOOPS

Some notes as I install your module:
- firebug13 help file says: "browse to www.yourdomain.com/adddebug.php"; but the file is called "adddebugfirsttime.php"
-in system preferences, what is the diference between firebug and firebug admin?

frankblack

Just can't stay away
Posted on: 2009/8/8 17:08
frankblack
frankblack (Show more)
Just can't stay away
Posts: 830
Since: 2005/6/13
#20

Re: PHP-Debugging without XOOPS

Oops, I have to correct the installation notes. For first timers it must adddebugfirsttime.php of course. Missed that, sorry.

I added three modes:
FirePHP = Debugger enabled for registered, this means also for admins
FirePHP + Guest = Debugger enabled for all kind of groups
FirePHP Admin = Debugger enabled only for admin

I am using the standard eclipse installation from eclipse.org + ftp plugin from eclipse 3.2 + phpeclipse from phpeclipse.com + jseclipse from interaktonline.com.

I tried Aptana, but was upset with all the windows and reminders and permanent updates.