I wish to harvest the exception stack to open debugger on new Thread while unblocking the thread which threw the original exception. Is it possible in Java?
In Squeak, this method does the work:
StandardToolSet>>#debugException: anException
"For convenience. Construct a helper process to debug an exception
that occurred in the active process later on so that the active process
can (try to) resume. Uses a temporary variable to access and copy the
signaler context now before it gets GC'ed."
| helperProcess |
helperProcess := (Process
forContext: anException signalerContext copyStack
priority: Processor activeProcess priority)
shouldResumeFromDebugger: false;
yourself.
Project current addDeferredUIMessage: [
helperProcess
debugWithTitle: anException description
full: false].
```