Abin Manathoor Devasia
Abin Manathoor Devasia

Reputation: 1973

How to Debug JSNI method in GWT?

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

Answers (2)

Suresh Atta
Suresh Atta

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

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

Related Questions