Nonsense is not to say, directly on dry technology of dry goods. .

He made an example to explain with tomcat. Ensure the consistency of the code server and client.

My example is a window of the server.

first step:

Create a file in the tomcat bin directory, start.bat enter the following text.

8000 represents the starting port, external debug give permission.

set JPDA_ADDRESS=8000
set JPDA_TRANSPORT=dt_socket
catalina.bat jpda start



Step two:

On the client, configure the source code debugging.

Screenshot illustrate. It is to set the server ip and port as well as debug projects corresponding local project

wKiom1Lh8kTxrIxGAAK0D6Yd2FU966.jpg

Click to debug after that. Reconfiguration

wKioL1Lh8jChMNP-AANWnLwY7Vk414.jpg

At this point, you can not click debug.  



Third, start start.bat file created in step. Then back to the client to start debug. Remember break point in the machine, you can run the debugger server.