Jump to content

[SOLVED] Debugging Class


Ninjakreborn

Recommended Posts

I didn't see a set of rule's.

I have 2 questions basically.

 

1. Is it against the rules of the OOP Help board to ask if anyone knows of a good class for "whatever".  Or is that against the purpose of this specific category.

 

2. If not then does anyone know of a good PHP Debugging class.  I found a few, but I was hoping to find something really powerful.  I found something big but it had too advanced of an install.  it used JavaScript and it required a separate installation, I want an actual class that has a bunch of really good stuff for debugging.  Any advice appreciated.

 

Note: If this type of post isn't allowed in this category then delete it and I will pretty much get the hint to post in the miscellaneousness board at that point.

Link to comment
Share on other sites

One that has extensive information variables, benchmarks, execution times.  Just lot's of different things you can see related to debugging.

 

You can't really do this in a purely PHP implmentation without interlacing your code with a bunch of debug calls.  That is why most debugging tools are built as C PHP extnesions, I use xdebug along with kcachegrind and it does everything you have mentioned, and does so without me having to add debug calls in my code.

 

Best,

 

Patrick

Link to comment
Share on other sites

While I am an advocate of TDD, it seems that OP was looking for more of a code profiler than a debugger. 

 

One that has extensive information variables, benchmarks, execution times.

 

The xdebug extension allows you to track down memory usage per function which is very useful when trying to clean up and streamline code.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.