Shyru's World

Wednesday, December 08, 2004

Do you like debug messages?

I do. - Well thats not entirely correct. I _love_ debug messages! :-)
What kept annoying me all the time, was that it is not easily possible to output debug messages when creating a website with PHP. Either you spit out the messages right into the resulting html - not that nice, or you save them to a file and keep tail -f'ing that file. - Not that nice either.
While developing a Webinterface in the company i work, i finally found an IMHO nice solution to this problem:
A floatable debug window. - Well, not a real browser window, but a movable div-tag with the debug messages in it. Together with a helper function in PHP and javascript i am now able to send debug messages to that window at any time. - Either while generating the page, using the PHP function, or while running javascript, using the javascript function. And if the window gets into my way, i simply move it away or close it completly. - Very nice.
Wanna see a screenshot?

Not so nice news are, that my brother had a car accident yesterday. He drove drunk, but didn't hurt himself or any other. - Thank god! But nevertheless the car is a wreck, and he had to release his driving license. Strange to say that he never drove drunk befor, rather getting home with friends or staying over night. Hope it's a lesson for him. We are all thankful that he is still well and alive.

1 Comments:

  • Nice to hear from you again, Raven! :-)

    My thoughts on this:
    Well, first ZendStudio costs money. :-)
    Second, I never got the debug facilities of such IDE's working right. PHPEdit also has a Debugger but when building sites with sessions i was not able to use it. And third: Since I'm developing an application server in PHP I have multiple processes generating the resulting html page, and that would not be possible to debug with an IDE.
    But you are right, I should try those debuggers again... :-)

    By Blogger Shyru, at 3:37 PM  

Post a Comment

<< Home