[CMake] Tracing ctest crash on windows

Bill Hoffman bill.hoffman at kitware.com
Thu Jan 5 11:51:35 EST 2017


On 1/5/2017 9:32 AM, Jakob van Bethlehem wrote:
>
> CTest is not some magical tool that internally runs your test or
> something like that - instead CTest just fires up your test executable
> and does clever things with the output. In the same way you can just set
> your test project as startup-project, and debug it like any other
> executable.
>
> Sincerely,
> Jakob
>
> On Wed, Jan 4, 2017 at 2:43 PM, Aaron Boxer <boxerab at gmail.com
> <mailto:boxerab at gmail.com>> wrote:
>
>     Hello,
>     I am on windows, with visual studio 2015.
>     Some of my ctest tests are crashing with exception.
>     Is there a way of debugging these tests ?
>
>     When I run in debug mode, I get an exception dialog,
>     but can't drop into debugging environment.
If you run ctest -VV it will show the full command line.  Best way is to 
just run the same command in the debugger.

-Bill



More information about the CMake mailing list