How to use googletest Failures into Break-Points

前端 未结 1 1717
忘掉有多难
忘掉有多难 2020-12-28 15:13

I recently discovered the Failures into Break-Points - option from googletest using the command line option gtest_break_on_failure or by de

相关标签:
1条回答
  • 2020-12-28 15:47

    From VS, you can add --gtest_break_on_failure to the Command Args in the target's Property Pages, then just run the exe without stepping over.

    Property Pages showing Command Arguments

    From the command line, you should be able to run the Debug executable with the flags --gtest_break_on_failure --gtest_catch_exceptions=0 and this should allow you to break into the MSVC debugger when the test fails.

    0 讨论(0)
提交回复
热议问题