4 ms·
You can get the stack trace by breaking in "throw". Maybe you meant something else.
by PaulDavisThe1st 5y ago
You can get the stack trace by breaking in "throw". Maybe you meant something else.
- formerly_proven 5y agoBreakpoints on throw are triggered before unwinding (you are effectively setting a breakpoint on the function called to unwind). You simply cannot create a stack trace from within a C++ exception handler because that state is gone. Hence my argument that exceptions are not a continuation, there is nothing to continue.
- PaulDavisThe1st 5y agoAll true. But also a bit of a diversion, because the information you wanted "from within" the exception handler is available at the throw site. Ergo, if you're trying to get it from within the handler, you're just trying to get it from the wrong place.