I'm using GWT Super Dev and I activated source maps in Chrome. Although I can see the Java classes in the Sources tab, I can't figure out how to view the full stack trace of unhandled exceptions.
So how do I do that ?
You can use Thread. currentThread(). getStackTrace() . That returns an array of StackTraceElement s that represent the current stack trace of a program.
Using printStackTrace() method − It print the name of the exception, description and complete stack trace including the line where exception occurred. Using toString() method − It prints the name and description of the exception. Using getMessage() method − Mostly used. It prints the description of the exception.
code. (Window --> show view --> Other .. --> debug > display). text' button). --> go to the concole view, the trace is printed.
There is an open issue for it:
http://code.google.com/p/google-web-toolkit/issues/detail?id=7460
However I've come to a workaround where I don't use the code server, but I integrate source map creation into a Maven-based project via a Maven profile. See this archetype for reference:
https://github.com/apetrelli/samplegwt
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With