...
2. In your IDE (Eclipse or IntelliJ IDEA) set up a remote debugger that would connect to port 8000. Here is a snapshot of what it would look like in IDEA:
3. Restart Tomcat. In the tomcat log, you should see an entry that says "Listening for transport dt_socket at address: 8000".
...