1
Mamba
Tutorial: Debugging XOOPS with FirePHP/Firebug
  • 2011/4/4 7:27

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


Couple of years ago Frankblack did a very cool hack for using FirePHP/Firebug in XOOPS:

https://xoops.org/modules/newbb/viewtopic.php?post_id=314366

But it seems like not many people are aware of it.

I was debugging today some modules and wanted to use it, so I've updated Frankblack's files with the latest version of FirePHPCore files.

And as I was installing it, I have also written a short tutorial about how to install and how to use it (see attachment).

I would appreciate if you could:

1) test it and see if it works correctly on 2.5.x

2) read the tutorial and let me know what can be improved there:

- is it easy to understand and follow?
- does it contain enough information?
- could we add something more to make it more educational about how to debug XOOPS modules/core?

Thank you very much for taking your time to review it and respond

2
luciorota
Re: Tutorial: Debugging XOOPS with FirePHP/Firebug
  • 2011/4/4 15:19

  • luciorota

  • Module Developer

  • Posts: 216

  • Since: 2007/4/20


Great job... some problems if your site language is not english or german...

you can fix it in this way:

edit class\logger\firephp\logger.php line 78:

include_once dirname(__FILE__).'/FirePHPCore/'.$xoopsConfig['language'].'.php';


to

if (file_exists(dirname(__FILE__).'/FirePHPCore/'.$xoopsConfig['language'].'.php'))
                include_once 
dirname(__FILE__).'/FirePHPCore/'.$xoopsConfig['language'].'.php';
            else
                include_once 
dirname(__FILE__).'/FirePHPCore/english.php';


very useful hack, excellent with ajax modules
Why not included in official xoops releases?

Thanks

3
Mamba
Re: Tutorial: Debugging XOOPS with FirePHP/Firebug
  • 2011/4/5 0:43

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


Thanks for the hack.

Yes, Frankblack did a great job with it! We need more of such tools available to XOOPS developers!

Quote:
Why not included in official xoops releases?

I think, it would be something to consider in XOOPS 2.5.2. We'll need to ask the Core team about it, if they agree to it...

4
fdeconiac
Re: Tutorial: Debugging XOOPS with FirePHP/Firebug
  • 2011/4/6 15:38

  • fdeconiac

  • Quite a regular

  • Posts: 278

  • Since: 2008/11/29


Hi Mamba,

Just tried to install it.

In fact i just noticed that my debug mode is not working. neither pop up neither in line. Tried to access to it by firebug, but i didn't get it neither.

I'm meeting a pb, already annunce by luciorota on xuups about a blank page when displaying more than one mymenus blocks... I was hoping to see the debug mode but i can't get it. Any idea why ?

Version de XOOPS XOOPS 2.5.1 RC
Version de PHP 5.3.5
Version de MySql 5.1.37-1ubuntu5.5-log
mymenus 1.1

5
Mamba
Re: Tutorial: Debugging XOOPS with FirePHP/Firebug
  • 2011/4/6 19:13

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


Before you go into FirePHP, you have to make sure that your standard XOOPS Debug is working properly.

Did you turned it on is General Settings?

What are you settings in the config file?

6
fdeconiac
Re: Tutorial: Debugging XOOPS with FirePHP/Firebug
  • 2011/4/6 22:26

  • fdeconiac

  • Quite a regular

  • Posts: 278

  • Since: 2008/11/29


Hi Mamba,

my debug mode is not working ! Neither in line, neither pop up... Maybe does it come from the core of Xoops 2.5.1 ?

About the installation of firephp, i override my files with your archive... Do i need to do something more ? i see your manual and i dont think so...


7
Mamba
Re: Tutorial: Debugging XOOPS with FirePHP/Firebug
  • 2011/4/6 23:45

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


I would suggest to forget FirePHP until you make sure that the standard XOOPS Debug is working.

So reinstall it, if you need to, but make sure that you can turn it on in General settings and that it works

Only then proceed to FirePHP

8
qten40
Re: Tutorial: Debugging XOOPS with FirePHP/Firebug
  • 2011/10/1 8:41

  • qten40

  • Just popping in

  • Posts: 1

  • Since: 2011/10/1


good job guys.

9
drjdallas
Re: Tutorial: Debugging XOOPS with FirePHP/Firebug
  • 2011/11/2 16:18

  • drjdallas

  • Just popping in

  • Posts: 1

  • Since: 2011/11/2


Our web guy wants to know if this can integrate with twitterfeed. Does that make sense?

10
luciorota
Re: Tutorial: Debugging XOOPS with FirePHP/Firebug
  • 2012/3/12 9:25

  • luciorota

  • Module Developer

  • Posts: 216

  • Since: 2007/4/20


Wow.....
I WANT IT in Xoops 2.6.X !

Login

Who's Online

312 user(s) are online (189 user(s) are browsing Support Forums)


Members: 0


Guests: 312


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