Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

F11 Debug line by line 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 where exactly my app crashes. I am trying to use F11 the problem is that F11 shows me external code (opencv libraries, std libraries etc).

Is there any other way to don't put lots of breakpoint all over 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 debug the vector library files too, and I want to avoid that. I just want to follow the flow of the code inside my main();

like image 201
dynamic Avatar asked Nov 04 '22 18:11

dynamic


1 Answers

Hi as already mentioned in my comment in VS2010 the only way to avoid stepping into STL code is to modify a registry key, as described in this post.

With VS2012 there is another way by using Visualizers.

like image 72
codencandy Avatar answered Nov 12 '22 13:11

codencandy