Just-in-Time Debugging

The real boon with just-in-time debugging is that you can handle the failure of your application when it occurs. Under most other operating systems, you must invoke your application through the debugger to debug it. If an exception occurs in a process on one of these other operating systems, you have to terminate the process, start a debugger, and invoke the application—again using the debugger. The problem is that you have to try to reproduce the bug before you can fix it. And who knows what the values of the different variables were when the problem originally occurred? It’s much harder to resolve a bug this way. The ability to dynamically attach a debugger to a process as it runs is one of the best features in Windows. ...

Get Windows® via C/C++, Fifth 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.