]> git.saurik.com Git - wxWidgets.git/commit
Open debugger at the location of failing assert, if possible.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 4 Dec 2012 00:39:29 +0000 (00:39 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 4 Dec 2012 00:39:29 +0000 (00:39 +0000)
commit55fd62c1e370bef69657f220ddd591743e842be8
tree9b82f8f7b5673800d970dac3e0e2bff2c7adc3d7
parentf3ddefc1ad03197a297ebfe0426edfbbdf8d859b
Open debugger at the location of failing assert, if possible.

Break into the debugger in the function containing the assert that failed
instead of inside wxWidgets assert handler which is several (~8) levels below
the last line of the user code. This is much more useful in practice and also
less confusing.

Currently this only works for MSVC as the other compilers don't have any
__debugbreak intrinsice equivalent.

Also update the except sample to test wxTrap() directly too.

Closes #11184.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73124 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/debug.h
samples/except/except.cpp
src/common/appbase.cpp