Posts Tagged ‘Debugging’

A better alternative to using alert() for debugging

We’ve all used, and unfortunately some people continue to use, alert() to help debug JavaScript. Thankfully the Microsoft Ajax Library has a Sys.Debug class that exposes methods for logging messages to the browser’s JavaScript console. For reference: To log a message to the console use: Sys.Debug.trace(“Log this message to the console”); To dump an object [...]