Overriding 'alert' to write to 'console.log'
I define my own global function 'alert' that writes the message using 'console.log'.
I still use 'alerts' for debugging. I can leave the alerts in when going live and just override the 'alert' function.
I also still debug by adding colored backgrounds to HTML elements.
The debugger on my old Konqueror browser hangs the browser. The browser is 15 years old and I compiled it myself (slightly wrongly) from the sources.

Comments
Post a Comment