>
> I'm using IntelliJ...I'd like to hear if/how IntelliJ can do this too.
>

With the released IntelliJ 14 things are a bit easier.

- Create a new GWT run configuration and select "User Super Dev Mode" and 
at the bottom "with JavaScript debugger". 
- IntelliJ will automatically generate a JavaScript debugger run 
configuration. Open that run configuration and you should see your GWT 
project directory tree. In that tree navigate to your source folder (src or 
src/main/java) and double click on the "Remote URL" column next to it. The 
remote URL is where IntelliJ will download source map files from so you 
should paste in something 
like http://127.0.0.1:9876/sourcemaps/<module-name>.

Now launch the GWT SDM run configuration which should also automatically 
launch the JavaScript Debug configuration. Chrome should now tell you that 
IntelliJ is debugging your site (you may need to install the LiveEdit 
Chrome extension) and you should be able to set break points in your Java 
code and step through the code from within IntelliJ.

Sometimes when you hit a break point the source map file isn't ready yet in 
IntelliJ (seems like a timing problem) and you see the pure JavaScript. But 
once you do the first "step over" IntelliJ should switch to the Java source 
by using source map information. Overall it works pretty well.

But keep in mind that fields and expressions in conditional break points 
are still all JavaScript. You are not debugging Java!

-- 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