This idea came from my days as a C programmer back eons ago.
I created a function called OutputDebugString() that takes a string as an argument and writes that string to a mysql table you create in your database (.sql code included).
From there, a seperate module, called from a supplied index.php file, will read the database and display its contents... refreshing every 3 seconds.
This eliminates a need for echo statements peppered throughout your code and mucking up your output. Instead, you can see the results of your work in a seperate tab/window while you are working through your code.
The only drawback is that the meta-refresh can get annoying if you are trying to work with the data but I can change that to a javascript function so that it can be controlled from the viewing page. I might also add a button to copy the debug output to the clipboard.
What I need is for a few folks to take a look at it and give me some feedback...
The entire code is attached as a .zip file.
Thanks,
Pete