Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
Restarting a Java Spring Boot debug session in Cursor often fails on the first attempt. The old JVM is not fully torn down before the new launch starts. The same project, same launch.json, and the same Java extensions work correctly in VS Code: one Restart cleanly stops the old process and starts a new one.
After a failed Cursor restart, the previous process on the app port is gone or half-dead, and the new process does not come up. A frontend proxy then sees ECONNRESET / ECONNREFUSED against the backend port.
This looks like a Cursor debug-host timing issue (stop + start), not a Maven or project configuration problem. Both IDEs share the same ~/.m2/repository and the same launch config.
Related existing report: Spring Boot process not terminating after stopping debug in Cursor IDE
Steps to Reproduce
Open a Spring Boot Maven project in Cursor.
Start Debug with a Java launch config, for example:
{
“type”: “java”,
“name”: “NgsApplication”,
“request”: “launch”,
“mainClass”: “cn.biosan.ngs.NgsApplication”,
“projectName”: “biosan-ngs”
}
Wait until the app is listening on its configured port.
Click the built-in Restart button, or press Shift+Cmd+F5.
Repeat the same steps in VS Code with the same repo and extensions.
Expected Behavior
Restart should stop the current debuggee, wait until the process and debug adapter are gone, then start a new session. The app should listen on the same port again after one Restart, same as VS Code.
Operating System
MacOS
Version Information
Operating System
macOS 15.8.1 (Build 24H32), Apple Silicon
Current Cursor Version
Version: 3.24.9
VSCode Version: 1.128.0
Commit: cd6d2a1f2e56e9841f0ed9c7c24542087b4e69b0
Java extensions
Debugger for Java (vscjava.vscode-java-debug) 0.59.0
Language Support for Java by Red Hat (redhat.java) 1.56.0
JDK used to run the app: OpenJDK 17 (/Library/Java/JavaVirtualMachines/openjdk-17.jdk/Contents/Home)
Does this stop you from using Cursor
No - Cursor works, but with this issue