Author Topic: dBug  (Read 480 times)

Offline codestryke

  • Administrator
  • Level 33
  • *****
  • Posts: 589
  • Reputation: +22/-0
    • View Profile
    • eXtremeCast Games
dBug
« on: January 05, 2009, 12:22:20 PM »
I've been starting to use this little gem more and more in my development.

http://dbug.ospinto.com/

Basically it allows you to dump variable information to the page. I know doesn't sound very exciting but what is nice is it works with recordsets, arrays and just plain variables all with one call. On top of that it color codes the output based on what type of variable it is.



Creating online addictions, one game at a time:

Offline Barrikor

  • Level 21
  • *
  • Posts: 248
  • Reputation: +3/-0
    • View Profile
Re: dBug
« Reply #1 on: January 10, 2009, 01:53:26 PM »
Wow,

I think I might start using this maybe...

(It's GPL'd though so I guess I have to only use it for testing and then take it out at the end???)
Projects: Pith Framework (at 0.5), CactusGUI (at 0.3)

Offline lolninja

  • Level 19
  • *
  • Posts: 194
  • Reputation: +5/-0
  • BSc powered Programmer
    • View Profile
    • HTTPmmo
Re: dBug
« Reply #2 on: January 10, 2009, 01:58:42 PM »
Its worth doing something like...

define(DEBUG, true);// In your main index file or something.

then
if (DEBUG)
    new dBug($myVariable);

That way you just turn DEBUG to false when you go into production and its all safe :)

Offline codestryke

  • Administrator
  • Level 33
  • *****
  • Posts: 589
  • Reputation: +22/-0
    • View Profile
    • eXtremeCast Games
Re: dBug
« Reply #3 on: January 10, 2009, 05:03:55 PM »
Wow,

I think I might start using this maybe...

(It's GPL'd though so I guess I have to only use it for testing and then take it out at the end???)

Nope. If you make changes to dBug then you are required to share said changes to the developer.
Personally I just use it locally on my development machine...
Creating online addictions, one game at a time:

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal