compile to display java code line number

75 views
Skip to first unread message

Luke

unread,
Oct 31, 2012, 3:22:44 PM10/31/12
to google-we...@googlegroups.com
What parameters should I use to compile in order to display java code line number when exception ?  Below is error showing on my firefox when exception

uncaught exception: Class$S244: Exception caught: 2 exceptions caught: (TypeError) 
 lineNumber: 221: b.c is null; (TypeError) 
 lineNumber: 227: b.c is null

Thad

unread,
Oct 31, 2012, 10:08:37 PM10/31/12
to google-we...@googlegroups.com
If you run in devmode, you will see the Java line number.

To see something more easily understood in production mode, add -style PRETTY to your program arguments. See https://developers.google.com/web-toolkit/doc/latest/RefCommandLineTools, specifically targets gwtc and devmode generated by webAppCreator.

Andrea Boscolo

unread,
Nov 1, 2012, 8:49:10 AM11/1/12
to google-we...@googlegroups.com
And don't forget <set-property name="compiler.stackMode" value="emulated"/> in that case.

Have also a look at the experimental SuperDevMode :)
Reply all
Reply to author
Forward
0 new messages