简体   繁体   中英

Debugging in GWT Super Dev Mode?

So far, debugging in GWT super dev mode seems to be a real pain. If there are any errors, there is no stack trace, just a cryptic message given in the chrome console. Is there a way to get all errors to print a stack trace, like in the dev mode?

I already have source maps on I believe, since if I go to Sources in Chrome's dev tools, I can see the source code of my java classes.

GWT.setUncaughtExceptionHandler lets you set an exception handler, which will handle all exceptions. You can then get the stacktrace of that exception using something like this code , and then print exception.toString() and the stack trace to the console. This has worked reasonably well for me.

How do you start super dev mode? From inside eclipse maybe? If you have a maven project and run it from the command line (eg mvn gwt:run) a window pops up showing you the stack traces of exceptions and other information as well.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM