Seeing array values in the debugger as a list!

VC debuggger has a nice feature to display array values. It works with any contiguous data, for e.g. vector, CArray, native type arrays etc. Follow these steps… IntVector is an array of integers Start quick watch by pressing Shift + F9 with IntVector object selected Select _First(encircled in red) and press Add watch(encircled in red) […]
Continue reading…

 

Conditional breakpoint

How to set a conditional breakpoint Add this code to your common include or some file where it’s meant to be used… [sourcecode language=’cpp’]#ifdef _DEBUG     #define CBREAK( condition ) if(( condition )){ _asm int 3; } #else     #define CBREAK( condition ) #endif //How to use this macro… void SomeFunction() {     for( int […]
Continue reading…