Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GoogleTest: How to set a breakpoint?

I'm using Visual Studio 2010 C++ with Google test. I have a post-build event on my test project to run the test project. This works and the google test test results are displayed in the visual studio output window. However, now I'd like to set a debug breakpoint to step through a test. When I set a break point in either my test code or in the code it calls nothing happens.

How can I set a breakpoint with google test? Or probably more accurately, how can I get it to trigger the debugger?

like image 459
User Avatar asked Jul 30 '11 04:07

User


1 Answers

I guess you have a separate project that builds the test. You should just run it under the debugger.

like image 79
unkulunkulu Avatar answered Sep 28 '22 03:09

unkulunkulu