1
frankblack
Debugger for 2.4.2?
  • 2009/11/25 20:06

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


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.

2
Mamba
Re: Debugger for 2.4.2?
  • 2009/11/30 18:11

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


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!

3
frankblack
Re: Debugger for 2.4.2?
  • 2009/11/30 19:41

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


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.

4
Mamba
Re: Debugger for 2.4.2?
  • 2009/11/30 19:53

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


Well, let's talk to Trabis about it

5
frankblack
Re: Debugger for 2.4.2?
  • 2009/11/30 20:19

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


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!

6
Mamba
Re: Debugger for 2.4.2?
  • 2009/11/30 21:18

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


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

7
frankblack
Re: Debugger for 2.4.2?
  • 2009/12/1 7:25

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


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

Login

Who's Online

243 user(s) are online (143 user(s) are browsing Support Forums)


Members: 0


Guests: 243


more...

Donat-O-Meter

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

Latest GitHub Commits