c++ - Don't know where exception was thrown using google-test -


we using google test our c++ unit testing framework. ran painful situation , don't know how deal with.

basically, when there uncaught exception in code, got following error message printed in console , failed. obviously, exception captures google test. however, have no information @ exception throw.

unknown file: error: seh exception code 0xc000005 thrown in test body.

what can debug , step through code , figure out problem is. not efficient project big.

i want debugger stop @ line of uncaught exception , give me nice call stack. there settings in google test don't know of? other work around or suggestions appreciated.

edit: looking following under windows enter image description here

finally according answers, found settings visual studio , works way want :) enter image description here

an seh exception not c++ exception.

it windows exception throw outside of standard c++ framework exception handing (there different syntax catching them).

the best way find location run inside devstudio. been while sure devstudio has option break when seh exception thrown. turn on , debugger stop @ throw point , allow debug.

see: https://msdn.microsoft.com/en-us/library/d14azbfh.aspx

as noted @matthiasvegh should pass name of test don't have run through tests.


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -