Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GWT - How to view java exception stack trace in super dev?

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 ?

like image 609
Andrei F Avatar asked Jun 17 '14 13:06

Andrei F


People also ask

How can I get the current stack trace in Java?

You can use Thread. currentThread(). getStackTrace() . That returns an array of StackTraceElement s that represent the current stack trace of a program.

How do I print a stack trace for exceptions?

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.

How do I view stack trace in Eclipse?

code. (Window --> show view --> Other .. --> debug > display). text' button). --> go to the concole view, the trace is printed.


1 Answers

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

like image 161
apetrelli Avatar answered Oct 01 '22 01:10

apetrelli