I am a C developer looking into C++:
Do I understand it correctly that if I throw an exception then the stack will unwind until the first exception-handler is found? Is it possible to instead open a debugger upon any throw
without unwinding (ie without leaving the scope in which it was declared or any higher scope)?
The reason I am asking is, that - even though there are exception handlers in a higher scope - I am interested in the locals of that scope (and also dont want to lose the RAII'ed objs) and want to look at them during debugging.
EDIT: mostly for g++ on win+linux, but also interested in other platforms.