F11 Debugging line by line is only my .cpp?

I am developing an OpenCV application and I need to debug my code (Visual studio 2010, opencv with cmake).

I would like to debug line by line to see exactly where my application crashes. I am trying to use F11 , the problem is that F11 is showing me external code (opencv libraries, std libraries, etc.).

Is there any other way not to put many breakpoints throughout my code?

int main(void) { vector<int> myVec; myVec.push_back(1); //> Do other stuff } 

If I try F11 with this code, visual studio will also debug the vector library files, and I want to avoid this. I just want to monitor the flow of code inside my main ();

+4
source share
2 answers

Hi, as already mentioned in my comment in VS2010, the only way to avoid switching to STL code is to change the registry key as described in this post .

With VS2012, there is another way using Visualizer .

+2
source

You cannot enter external code (unless you show it as an assembly).

You must use F10 to go to the next, and not to enter such a function. You can also use Shift + F11 to return to the next line (after the current function) if you are inside such an external function code.

0
source

All Articles