I added an UncaughtExceptionHandler with the following code:
GWT.setUncaughtExceptionHandler(new GWT.UncaughtExceptionHandler() { public void onUncaughtException(Throwable e) { StackTraceElement[] elements = e.getStackTrace(); String stackTrace = ""; for (int i = 0; i < elements.length; i++) { stackTrace += elements[i] + "\n"; } PlatformServices.instance().log().debug("caught unhandled exception: " + e + " ; Stack:\n" + stackTrace); } }); The problem is that only the function name of each StackTraceElement is valid. All other information is default, such as -1 for line number or unknown for class name.
I wonder if I am doing something wrong?