frankblack frankblack
  • Just can't stay away
  • Just can't stay away
  • Joined: 2005/6/13 4:03
  • From D-Schiefbahn
  • Group: Registered Users
  • Posts: 830
  • Posted on: 2009/11/25 15:06
Debugger for 2.4.2? #1
Wouldn't it be a good idea to take the loggerpack made by trabis and integrate it to 2.4.2? I just copied over the old files from 2.3x and they still work and it makes debugging far easier. Only drawback at the moment: you have to configure in the configs file.

Just my 2 euro cents.
Mamba Mamba
  • Moderator
  • Moderator
  • Joined: 2004/4/23 14:58
  • From Ohio, USA
  • Group: Webmaster Registered Users Designer Group Super Moderator
  • Posts: 10293
  • Posted on: 2009/11/30 13:11
Re: Debugger for 2.4.2? #2
2.4.2 was only for Bug fixes, so we tried to avoid any new additions.

But if you could create it as a patch for download, it would be great!
frankblack frankblack
  • Just can't stay away
  • Just can't stay away
  • Joined: 2005/6/13 4:03
  • From D-Schiefbahn
  • Group: Registered Users
  • Posts: 830
  • Posted on: 2009/11/30 14:41
Re: Debugger for 2.4.2? #3
This would be no ADDITION, it would be GREAT help.

To keep things clear: the debugger is (again) Trabis work! From me you only get the collected data and a short description.
Mamba Mamba
  • Moderator
  • Moderator
  • Joined: 2004/4/23 14:58
  • From Ohio, USA
  • Group: Webmaster Registered Users Designer Group Super Moderator
  • Posts: 10293
  • Posted on: 2009/11/30 14:53
Re: Debugger for 2.4.2? #4
Well, let's talk to Trabis about it
frankblack frankblack
  • Just can't stay away
  • Just can't stay away
  • Joined: 2005/6/13 4:03
  • From D-Schiefbahn
  • Group: Registered Users
  • Posts: 830
  • Posted on: 2009/11/30 15:19
Re: Debugger for 2.4.2? #5
HERE you can get the loggerpack.

Unzip it, backup the two files in class/logger (render.php and xoopslogger.php) and copy the content of the unzipped loggerpack in there. Open xoops_data/configs/xoopsconfig.php in an editor and change this:
"debugLevel" => 0,

into this:
"debugLevel" => 0,
        
"debugLogger" => "legacy",


debugLevel = 0 (all users)
debugLevel = 1 (for members)
debugLevel = 2 (for admins)

legacy -> normal XOOPS debug
firephp -> debugger for Firefox, addons firebug and firephp have to be installed
pqp -> PHP Quick Profiler

Now visit Preferences | General Settings and pick up "Enable debug (inline mode) from setting Debug Mode. Hit "Go" and you are done.

Drawback for firephp: at some places you might get a blank page. Especially when file operations are involved. An exception is thrown which firephp is not capable to resolve. But this one is my favourite, because your layout is destroyed by debug information and at the same time, you get all information.

Have fun and good bughunting!
Mamba Mamba
  • Moderator
  • Moderator
  • Joined: 2004/4/23 14:58
  • From Ohio, USA
  • Group: Webmaster Registered Users Designer Group Super Moderator
  • Posts: 10293
  • Posted on: 2009/11/30 16:18
Re: Debugger for 2.4.2? #6
Thank you!

This is great intro on how to use it!

BTW - why should we backup "render.php" - there is no "render.php" in your pack at the /class/logger directory level
frankblack frankblack
  • Just can't stay away
  • Just can't stay away
  • Joined: 2005/6/13 4:03
  • From D-Schiefbahn
  • Group: Registered Users
  • Posts: 830
  • Posted on: 2009/12/1 2:25
Re: Debugger for 2.4.2? #7
Quote:
BTW - why should we backup "render.php" - there is no "render.php" in your pack at the /class/logger directory level


You should backup render.php and xoopslogger.php ALREADY in original class/logger just for safety if the loggerpack does not behave as expected, so that you can easily revert. That's all...
How to effectively post a question in the Xoops forums? - Read here...
Design by: XOOPS UI/UX Team