I start my app server (sun
java system) from command line script. I added
java-config debug-enabled="true" debug-options="-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"
to the domain property file.
Questions are --
1. what is the port number I can use ? When I installed the app server I used 8080 as HTTP port, which means all the local host application uses 8080 port. Here, in the above syntax, should I use address = 8080 ? I tried, but then when I started the server I got "port conflict" error. Shall I use a different port number here ? If yes, then it is really strange -- Since my application runs on 8080 HTTP port, how can I use a different port (say, 7000) for debugger port ? You are not going to see anything from
http://localhost:7000/myapp ! Everything is run on
http://localhost:8080/myapp, right ?
2. Anyway, I tried a different port (8000) instead of 8080 HTTp port, and in Myeclipse, I configured an "external lanuched server". From there I specify "8000" to be consistent, then when I click "debug", it showed "failed to connect to remote VM". So, what's the problem ?
Please help.