xoops forums

frankblack

Just can't stay away
Posted on: 2009/11/25 15:06
frankblack
frankblack (Show more)
Just can't stay away
Posts: 830
Since: 2005/6/13
#1

Debugger for 2.4.2?

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

Moderator
Posted on: 2009/11/30 13:11
Mamba
Mamba (Show more)
Moderator
Posts: 10356
Since: 2004/4/23
#2

Re: Debugger for 2.4.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

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

Re: Debugger for 2.4.2?

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

Moderator
Posted on: 2009/11/30 14:53
Mamba
Mamba (Show more)
Moderator
Posts: 10356
Since: 2004/4/23
#4

Re: Debugger for 2.4.2?

Well, let's talk to Trabis about it

frankblack

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

Re: Debugger for 2.4.2?

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

Moderator
Posted on: 2009/11/30 16:18
Mamba
Mamba (Show more)
Moderator
Posts: 10356
Since: 2004/4/23
#6

Re: Debugger for 2.4.2?

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

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

Re: Debugger for 2.4.2?

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