Originally published in the November 1988 Embedded Systems Programming magazine. Correction is the final step of any debugging exercise. Sometimes bug eradication is straightforward; sometimes a bug ...
A student raises his hand, sounding irritated and wronged. The look on this 11-year-old’s face seems almost accusatory; his code is not running and he sounds as if it is the teacher’s fault. During my ...
Programming is a constant game of mental Jenga: one line of code stacked upon another, building a tower of code you hope is robust enough not to come crashing down. But it always does, as code never ...
Make it a habit to dig deeper and find more information about the issue before starting to debug a non-trivial issue. For example: is this a new problem? If so, starting when? Is this only visible to ...
If you have ever tried to debug optimized code, you probably realized that it can be a frustrating experience. Without optimizations, your debugger is a reliable assistant, precisely following every ...
Microsoft has created a built-in JavaScript debugger for Visual Studio Code, the wildly popular, open source-based, cross-platform code editor. That built-in experience comes via vscode-js-debug, a ...
Debugging mouse events is especially confusing, because when the debugger stops the code, most of the events go away! What tactics can we use in these situations? When you work on an editor-style ...