"The (B)Leading Edge"
Exceptions and Debugging
©C++ Report (September 1996)

Abstract
This column wraps up (at least temporarily) the discussion of guidelines for using exceptions by examining the question of whether exceptions can (or should) be used when debugging an application. It discusses the differences between logic errors and runtime errors and notes that the former means 'bugs'. It offers the observation that most C++ programmers use exceptions for logic errors, and in fact these are the most likely causes of exceptions in a typical program. It concludes with some suggestions of how to take advantage of exceptions to help with debugging.