xoops forums

Mamba

Moderator
Posted on: 2011/4/4 7:27
Mamba
Mamba (Show more)
Moderator
Posts: 10779
Since: 2004/4/23
#1

Tutorial: Debugging XOOPS with FirePHP/Firebug

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

luciorota

Module Developer
Posted on: 2011/4/4 15:19
luciorota
luciorota (Show more)
Module Developer
Posts: 197
Since: 2007/4/20
#2

Re: Tutorial: Debugging XOOPS with FirePHP/Firebug

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

Mamba

Moderator
Posted on: 2011/4/5 0:43
Mamba
Mamba (Show more)
Moderator
Posts: 10779
Since: 2004/4/23
#3

Re: Tutorial: Debugging XOOPS with FirePHP/Firebug

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

fdeconiac

Quite a regular
Posted on: 2011/4/6 15:38
fdeconiac
fdeconiac (Show more)
Quite a regular
Posts: 278
Since: 2008/11/29
#4

Re: Tutorial: Debugging XOOPS with FirePHP/Firebug

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

Mamba

Moderator
Posted on: 2011/4/6 19:13
Mamba
Mamba (Show more)
Moderator
Posts: 10779
Since: 2004/4/23
#5

Re: Tutorial: Debugging XOOPS with FirePHP/Firebug

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?

fdeconiac

Quite a regular
Posted on: 2011/4/6 22:26
fdeconiac
fdeconiac (Show more)
Quite a regular
Posts: 278
Since: 2008/11/29
#6

Re: Tutorial: Debugging XOOPS with FirePHP/Firebug

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

Mamba

Moderator
Posted on: 2011/4/6 23:45
Mamba
Mamba (Show more)
Moderator
Posts: 10779
Since: 2004/4/23
#7

Re: Tutorial: Debugging XOOPS with FirePHP/Firebug

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

qten40

Just popping in
Posted on: 2011/10/1 8:41
qten40
qten40 (Show more)
Just popping in
Posts: 1
Since: 2011/10/1
#8

Re: Tutorial: Debugging XOOPS with FirePHP/Firebug

good job guys.

drjdallas

Just popping in
Posted on: 2011/11/2 16:18
drjdallas
drjdallas (Show more)
Just popping in
Posts: 1
Since: 2011/11/2
#9

Re: Tutorial: Debugging XOOPS with FirePHP/Firebug

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

luciorota

Module Developer
Posted on: 2012/3/12 9:25
luciorota
luciorota (Show more)
Module Developer
Posts: 197
Since: 2007/4/20
#10

Re: Tutorial: Debugging XOOPS with FirePHP/Firebug

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