I am trying to debug a jnlp with IntelliJ but it keeps telling me
Unable to open debugger port (localhost:5005): java.net.connectException "Connection refused: connect"
First I start the jnlp via command line with
javaws -J-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 http://server:port/app.jnlp
afterwards I run the remote debug configuration in IntelliJ and I get the aforementioned exception
Screenshot of the IntelliJ configuration and the command line:
I've already read following questions:
- Debugging JNLP started application
- How can I debug applications under Java Web Start (JNLP)?
- remote debugging a jnlp application with IntelliJ
- Remote debugging java web start under JVM 1.8
but their answers (add arguments via Java control panel, set JAVA_TOOL_OPTIONS variable, ...) don't seem to work for me.
Any idea what I might be doing wrong?
I'm using IntelliJ 2017.1.5 and JDK1.8.0_121 on Windows 7.