Am Mittwoch, 2. April 2014 15:57:55 UTC+2 schrieb Jérôme Beau:
>
> Hi Jens,
>
> Just for the record : do you agree that using SDM you cannot inspect Java 
> values of Java variables in your browser?
>

Yes thats true. The only Java code you see in the browser is the Java 
source file provided via source maps. Everything else is JS based because 
you are debugging JS and not Java.

 

> if I debug JS, I expect to have JS inspections ;
>

Thats what you do with SDM debugging. The only difference is that the 
browser helps you to figure out which line of code in your source language 
(in this case Java) maps to that specific piece of JS you are currently 
debugging. 
SourceMaps is not about making the browser understand Java code. You should 
not expect the browser to understand something like 
"e.getMessage().equals(MyErrorsEnum.CONSTANT)" in a conditional break 
point. The browser simply does not know how to execute that string.

 

> if I debug Java (even in the browser through sourcemaps), I expect to see 
> Java values and Java symbols, and I expect that my conditional breakpoints 
> occur on Java expressions, not JS expressions. 
>

Thats what you do with classic DevMode + browser plugin. In this situation 
you never really leave the JVM which could also mean that you never really 
spot an issue in your code because it might only occur in pure JS after the 
app is compiled. That already happened to me: Clients report errors but in 
DevMode you can not reproduce them just because you are using DevMode.


Is there a tiny possibility that GWT can provide this in some future? 
>

I think there is some work going on for IntelliJ and Eclipse to use the 
browser remote debug connection to get JS from the browser and then use 
source maps inside your IDE. And maybe, just because this now happens 
inside an IDE, that IDE is then able to do some more work to provide you a 
more Java'ish feeling while debugging.

For example take a look at: https://github.com/sdbg/sdbg as a proof of 
concept in Eclipse.

-- J.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to