Tag Archives: testing and debugging

Offensive error handling in web development

A typical error handling practice is to wrap a piece of suspect code in a "try" block, and present a warm and fuzzy message in the "catch" block. But, after a user has seen that warm and fuzzy message a … more …

JavaScript Assertions are possible

Assertions are a great development-time debugging tool. They allow us to raise a red flag whenever a condition occurs that should never occur. This is, of course, an entirely different strategy than error-handling, which is a production-stage, run-time tool that … more …

Keeping on top of website errors

One of my favorite books depicts a southern farmer who boasts how his animals do all the work (maintaining the grass by eating it, etc, etc.) Wouldn't it be great if we, as web programmers, could let our users do … more …

Testing and Debugging the easy way: The debug flag

Setting and accomodating for a debug flag is one of the easiest ways to turn your script or application into "debug mode". One such method is to allow for a dedicated query string parameter, say debug, where in it's presence, … more …