Hour 7 Debugging Tools

Programs are easy to write. Correct programs are a different story. Locating program bugs can be difficult. Fortunately, most language distributors supply debugging tools to make your life easier as a programmer. Although the compiler locates syntax errors for you, logic errors often take extra time to locate, and you must be the one to locate such problems before your users locate the problems. For example, when a payroll amount comes out incorrectly due to a bug, you will need to locate the problem as soon as possible.

Although your debugging skills will improve as your programming skills improve, you can help reduce bugs that appear and make debugging simpler by learning to write programs in a way that will make them ...

Get Sams Teach Yourself Beginning Programming in 24 Hours, Second Edition 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.