Debug GWT module with IntelliJ on a local webserver
Hi, I am building a GWT module with IntelliJ 2017.2.4. The module needs to be run on my local Apache webserver because is has to connect to an existing backend.
I have created the artifacts for the web and the GWT compiler output, I included the artifacts in the build and upon a build in IntelliJ the files are indeed copied to the right location in the webroot of my backend site.
I have added the following "Dev Mode Parameters" in the run/debug configuration:
-noserver -war d:\project\xyz -startupUrl http://dev.xyz.net/xyz/xyz.html
"d:\project\xyz" is the webroot folder where the module should be run from.
I also checked the "Use Super Dev Mode" checkbox and the "with JavaScript debugger" checkbox in the run/debug configuration
When I start debugging this conguration in Chrome, the html file is loaded, the nocache.js is loaded but none of the breakpoints in my Java code in IntelliJ are hit.
Am I missing an extra setting, or is this setup not possible.
Thanks for your help!
David
Please sign in to leave a comment.
Do you mean that the server is already running and is not started from IntelliJ IDEA?
That's right. A local apache webserver is hosting my existing website and I want to add the GWT module.
Please make sure that JetBrains Chrome Extension is installed. If it is then you should try and right-click the extension and chose "Inspect in IDEA" menu item. Extension will then connect to your IDEA installation and debugging will work.
Thanks for your help. The extension is installed. Debugging works just fine when I am running without -noserver. It only fails when I use the dev mode settings as describe in my original post.
I get the feeling that IntelliJ somehow cannot make the link between the source and the running program.