In addition to what Freddy already said:

Native JS exceptions (which you get with "compiler.stackMode = native") 
should provide a line number as well as a column number. However not all 
browsers do this, some only report a line number. For those browsers that 
do not provide a column, the stack trace points to the start of the method 
because GWT's final JS output places each JS method on its own, single 
line. So if any exception occurs in the method, the line number matches the 
start of the method. Theoretically GWT could put each JS statement on its 
own line for those browsers but that would increase the JS size (additional 
carriage return character for each statement).

Chrome for example provides line and column numbers and thus the exception 
points to the concrete line within the method.

If you use "compiler.stackMode = emulated" then GWT inserts code to track 
code lines, thus the app will be roughly twice as large (and quite a bit 
slower).

-- J.

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/ba384771-a892-4995-acd5-7858b684346c%40googlegroups.com.

Reply via email to