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?
Asked
Active
Viewed 1,476 times
4
-
Refer https://groups.google.com/forum/?fromgroups=#!topic/google-web-toolkit/tgzTeAsn9bg – bNd Mar 20 '13 at 09:07
-
1May be can try up to some extend by adding alert in between, and showing values needed to be verified. :) – Dipak Mar 20 '13 at 09:10
-
@Piccaza that is the most possible weapon,if no clues left :)) – Suresh Atta Mar 20 '13 at 09:22
2 Answers
5
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.

Manolo Carrasco Moñino
- 9,723
- 1
- 22
- 27
0
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.

enrybo
- 1,787
- 1
- 12
- 20

Suresh Atta
- 120,458
- 37
- 198
- 307