Closed JunQianZ closed 6 years ago
@JunQianZ Port 9090
is the application port (for http), not the debug port. One of our team members published a dedicated tomcat extension https://marketplace.visualstudio.com/items?itemName=adashen.vscode-tomcat, i would suggest you to use it for tomcat debugging.
@testforstephen so what should be the debug port? and I did use the tomcat debugging. the tomcat is configured launched successfully from my visual studio code.
Please refer to this doc for enabling remote debugging on tomcat. https://stackoverflow.com/questions/3835612/remote-debugging-tomcat-with-eclipse
@JunQianZ thanks for reporting. This issue can be addressed by following the stackoverflow discussion. Close for now.
I have changed the testing port then It works
try to attach an Java web project to running tomcat on localhost, and do debugging, it failed, with below errors: Failed to attach to remote debuggee VM. Reason: com.sun.jdi.connect.spi.ClosedConnectionException
Environment
Steps To Reproduce
[attach a sample project reproducing the error] for the launch.json: "version": "0.2.0", "configurations": [ { "type": "java", "name": "Debug (Attach to Tomcat server)", "request": "attach", "hostName": "127.0.0.1", "port": 9090 }, attach logs
Current Result
Expected Result
Additional Informations