Title: Breakpoints don’t bind when attaching to JVM in WSL2 from Windows (Cursor/VS Code) — requests hang, `jdb` hits fine · Issue #1582 · microsoft/vscode-java-debug · GitHub
Open Graph Title: Breakpoints don’t bind when attaching to JVM in WSL2 from Windows (Cursor/VS Code) — requests hang, `jdb` hits fine · Issue #1582 · microsoft/vscode-java-debug
X Title: Breakpoints don’t bind when attaching to JVM in WSL2 from Windows (Cursor/VS Code) — requests hang, `jdb` hits fine · Issue #1582 · microsoft/vscode-java-debug
Description: Environment Host OS: Windows 11 IDE: Cursor/VS Code on Windows with repo mounted via WSL2 Guest OS: WSL2 Ubuntu 22.04 Java: OpenJDK 1.8.0_432 (Java 8) Extensions: Debugger for Java: latest version Language Support for Java™ by Red Hat: 1...
Open Graph Description: Environment Host OS: Windows 11 IDE: Cursor/VS Code on Windows with repo mounted via WSL2 Guest OS: WSL2 Ubuntu 22.04 Java: OpenJDK 1.8.0_432 (Java 8) Extensions: Debugger for Java: latest version ...
X Description: Environment Host OS: Windows 11 IDE: Cursor/VS Code on Windows with repo mounted via WSL2 Guest OS: WSL2 Ubuntu 22.04 Java: OpenJDK 1.8.0_432 (Java 8) Extensions: Debugger for Java: latest version ...
Opengraph URL: https://github.com/microsoft/vscode-java-debug/issues/1582
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Breakpoints don’t bind when attaching to JVM in WSL2 from Windows (Cursor/VS Code) — requests hang, `jdb` hits fine","articleBody":"**Environment**\n- Host OS: Windows 11\n- IDE: Cursor/VS Code on Windows with repo mounted via WSL2\n- Guest OS: WSL2 Ubuntu 22.04\n- Java: OpenJDK 1.8.0_432 (Java 8)\n- Extensions:\n - Debugger for Java: latest version\n - Language Support for Java™ by Red Hat: 1.47.0\n- Project: Spring Boot API (Gradle)\n\n**Expected behavior**\nAttach to 127.0.0.1:5005 and stop at breakpoints in controllers; HTTP requests hang until continued.\n\n**Actual behavior**\nAttach connects but IDE never stops at breakpoints; HTTP requests hang. Attaching with `jdb` hits breakpoints fine, so JDWP works. Rolling back both extensions fixes it.\n\n**Steps to reproduce**\n1. Build: `./gradlew clean assemble -x test`\n2. Run jar with JDWP:\n ```bash\n java -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005 \\\n -Dspring.profiles.active=local -Duser.timezone=UTC \\\n -jar build/libs/*.jar\n ```\n3. In Windows Cursor/VS Code, attach to host 127.0.0.1 port 5005.\n4. Set breakpoint in a @RestController method.\n5. Call the endpoint.\n\n**More info**\n- `javap -v` shows `SourceFile` and `LineNumberTable`.\n- Verified JDWP by attaching via `jdb -attach 127.0.0.1:5005`; breakpoints hit.\n- Rolling back Debugger for Java (e.g., to 0.58.2) and Language Support for Java (e.g., to 1.46.0) resolves the problem.\n\n**Workaround**\nRoll back both Java extensions or use `jdb`.\n\n**Notes**\nSeems specific to Windows host + WSL2 remote debug mapping; not reproducible with native Windows debug.","author":{"url":"https://github.com/clertonbruno","@type":"Person","name":"clertonbruno"},"datePublished":"2025-11-06T12:01:15Z","url":"https://github.com/microsoft/vscode-java-debug/issues/1582"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:8fc0287c-a95d-f091-095a-1648bf26f838 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A4AC:1573B6:55DF0:7027C:6B073123 |
| html-safe-nonce | c203ced9dd51cdbc9da39223c0e7edac8e3f734d5336ec8f0d6477951d68e9fd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNEFDOjE1NzNCNjo1NURGMDo3MDI3Qzo2QjA3MzEyMyIsInZpc2l0b3JfaWQiOiI5MjA3NTg1NDEzOTA3NTU4NjkxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | eea652ba02d2bfb0e0b9beeba61cfe9e825f925ba404188fa4a6d50f8ddca04a |
| hovercard-subject-tag | issue:3595509179 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/vscode-java-debug/1582/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2c30050f301be6ac9c7fcc5fd9e26d330d248ea19326c871811cea33154954ca/microsoft/vscode-java-debug/issues/1582 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2c30050f301be6ac9c7fcc5fd9e26d330d248ea19326c871811cea33154954ca/microsoft/vscode-java-debug/issues/1582 |
| og:image:alt | Environment Host OS: Windows 11 IDE: Cursor/VS Code on Windows with repo mounted via WSL2 Guest OS: WSL2 Ubuntu 22.04 Java: OpenJDK 1.8.0_432 (Java 8) Extensions: Debugger for Java: latest version ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | clertonbruno |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2a60952cad7efb2604ea85e500208f51c1ec1943aa260ac605c13eb46a1ed83b |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/vscode-java-debug git https://github.com/microsoft/vscode-java-debug.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 102584737 |
| octolytics-dimension-repository_nwo | microsoft/vscode-java-debug |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 102584737 |
| octolytics-dimension-repository_network_root_nwo | microsoft/vscode-java-debug |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 345c27626db08417fdfc84278a4415ae9a48d8f3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width