As I’m currently developing a jQuery plugin to deal with huge table that can’t be display without crashing the browser, I start to use a lot the debugging messages in the JavaScript Console of each browser.
These messages are very useful for the developer and helps me to understand what is going on without using the full step to step mode of a JavaScript debugger.
But sometimes you want to simply turn all the message On or Off. We can do that with a global variable and to test every time the value. It works, but it add a lot of lines and make the script slower.
So I wrote a small PHP script which add or remove comment in front of each console. line in your javascript file.
I create a page on SourceForge to have a SVN, a bug tracker and some other nice feature.
Please take a look

