Helmut Eller heller@common-lisp.net writes:
I'm pretty sure that arguments and locals aren't there. Well, maybe some JVMs include them, but java.lang.StackTraceElement has no methods to access them. It must already be expensive to fill in the limited stacktrace that is present in Sun's JVM so maybe it would be possible to include them.
Yeah true, but it seems that Java additionally provides a rather complete Debugger API which includes an ExceptionEvent that is invoked at the place an exception is thrown, and where you can get at StackFrame objects.
-T.