Reputation: 1973
I have a GWT application containing some JSNI methods. I am getting an exception from inside it. How can i debug the method in IDE or through Browser?
Upvotes: 4
Views: 1491
Reputation: 122026
Accroding to @Thomas Broyer HERE (If you are using Chrome
)
If you have an exception
in JSNI
code, you can ask Chrome
to "stop on all
exceptions", and you'll see your JSNI
code and will be able to step within
it. You can also try to "pause script execution
".
P.S: I didn't try it. Just a clue to push you further.
Upvotes: 0
Reputation: 9741
If you are using 2.5.x, configure and run your project in superdev mode. Enable your chrome browser to use source maps. Finally you will be brought to the exception line in the debug console of your browser.
Upvotes: 5