Microsoft

Conditional Breakpoints

Oct 11, 2013Brad Sullivan
Conditional Breakpoints
SummaryAI, from the source post

This post details the practical application of conditional breakpoints in Visual Studio for debugging memory leaks. It demonstrates how to combine hit count breakpoints on constructors to obtain object addresses, and then use these addresses as conditions on tracepoints to filter output and isolate the specific object causing the leak. The post illustrates this with a C++ example, showing how to trace AddRef and Release calls and narrow down the output to a specific object's refcount.

More from the Hit Count Breakpoints trail