11
frankblack
Re: PHP-Debugging without XOOPS
  • 2009/7/30 14:24

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


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...

12
frankblack
Re: PHP-Debugging without XOOPS
  • 2009/7/31 19:45

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


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

Please use the trackers there for feedback.

13
trabis
Re: PHP-Debugging without XOOPS
  • 2009/7/31 19:54

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


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

14
frankblack
Re: PHP-Debugging without XOOPS
  • 2009/8/3 16:28

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


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.

15
frankblack
Re: PHP-Debugging without XOOPS
  • 2009/8/8 16:44

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


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.

16
kaotik
Re: PHP-Debugging without XOOPS
  • 2009/8/8 16:49

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


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

17
frankblack
Re: PHP-Debugging without XOOPS
  • 2009/8/8 16:53

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


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.

18
kaotik
Re: PHP-Debugging without XOOPS
  • 2009/8/8 16:59

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


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

19
kaotik
Re: PHP-Debugging without XOOPS
  • 2009/8/8 17:05

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


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

20
frankblack
Re: PHP-Debugging without XOOPS
  • 2009/8/8 17:08

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


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.

Login

Who's Online

348 user(s) are online (269 user(s) are browsing Support Forums)


Members: 0


Guests: 348


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits