Wasp Spray, Slug Repellent, Fly Paper . . .

Many useful debugging tools exist, and you’d be stupid not to take advantage of them. Some are interactive, allowing you to inspect the code while it is running. Others are noninteractive, often running as a code filter or parser spitting out information about the program following analysis. Learn how they work to immeasurably reduce your debugging time.

Debugger

This is the best known debugging tool; the name belies its purpose. A debugger is an interactive tool that allows you to view the internals of your running program and poke around with it. You can follow the flow of control, inspect the contents of variables, set breakpoints in the code for later interruption, and even run arbitrary sections of ...

Get Code Craft now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.