Title: [WSL] Breakpoints fail to bind when attaching to JVM in WSL2 after Debugger for Java 0.58.3 update; rollback fixes · Issue #611 · microsoft/java-debug · GitHub
Open Graph Title: [WSL] Breakpoints fail to bind when attaching to JVM in WSL2 after Debugger for Java 0.58.3 update; rollback fixes · Issue #611 · microsoft/java-debug
X Title: [WSL] Breakpoints fail to bind when attaching to JVM in WSL2 after Debugger for Java 0.58.3 update; rollback fixes · Issue #611 · microsoft/java-debug
Description: Environment: Host OS: Windows 11, IDE: Cursor/VS Code Guest: WSL2 Ubuntu 22.04 Java: OpenJDK 1.8.0_432 (Java 8) Extensions: Debugger for Java 0.58.3 (latest), Language Support for Java 1.47.0 Spring Boot app running inside WSL2, debugged...
Open Graph Description: Environment: Host OS: Windows 11, IDE: Cursor/VS Code Guest: WSL2 Ubuntu 22.04 Java: OpenJDK 1.8.0_432 (Java 8) Extensions: Debugger for Java 0.58.3 (latest), Language Support for Java 1.47.0 Sprin...
X Description: Environment: Host OS: Windows 11, IDE: Cursor/VS Code Guest: WSL2 Ubuntu 22.04 Java: OpenJDK 1.8.0_432 (Java 8) Extensions: Debugger for Java 0.58.3 (latest), Language Support for Java 1.47.0 Sprin...
Opengraph URL: https://github.com/microsoft/java-debug/issues/611
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[WSL] Breakpoints fail to bind when attaching to JVM in WSL2 after Debugger for Java 0.58.3 update; rollback fixes","articleBody":"Environment:\n- Host OS: Windows 11, IDE: Cursor/VS Code\n- Guest: WSL2 Ubuntu 22.04\n- Java: OpenJDK 1.8.0_432 (Java 8)\n- Extensions: Debugger for Java 0.58.3 (latest), Language Support for Java 1.47.0\n- Spring Boot app running inside WSL2, debugged via JDWP attach on port 5005.\n\nExpected:\nAttaching from Windows (Cursor/VS Code) to a JDWP-enabled JVM in WSL2 stops at breakpoints in my project code.\n\nActual:\nAfter updating to Debugger for Java 0.58.3 and Language Support for Java 1.47.0, attach no longer stops at breakpoints. HTTP requests hang as if the breakpoint is hit, but the IDE never jumps to the code. Attaching using `jdb` and setting the same breakpoints works fine, so JDWP and class debug info are good.\n\nRolling both extensions back (Debugger for Java 0.58.2 and Language Support for Java 1.46.0) restores proper behaviour.\n\nRepro steps:\n1. Build and run the Spring Boot jar in WSL2 with JDWP:\n```\njava -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005 \\\n -Dspring.profiles.active=local -Duser.timezone=UTC \\\n -jar build/libs/your-app.jar\n```\n2. In Windows Cursor/VS Code, attach to 127.0.0.1:5005 (port forwarded via Remote - WSL).\n3. Set a breakpoint in any controller method.\n4. Send an HTTP request hitting that controller.\n5. Observe: request hangs but IDE never shows breakpoint. Meanwhile, `jdb` attach shows that the breakpoint is hit.\n\nNotes:\n- This only occurs when the JVM runs in WSL2 and the IDE is on Windows. A colleague running everything natively on Windows (no WSL) doesn't see the problem.\n- `address=*:5005` can't be used with Java 8 due to `gethostbyname` errors.\n- This seems like a regression introduced in 0.58.3 (or 0.58.3 + language server update). Rolling back fixes the issue.\n\nThanks for looking into this.\n","author":{"url":"https://github.com/clertonbruno","@type":"Person","name":"clertonbruno"},"datePublished":"2025-11-06T22:07:57.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/611/java-debug/issues/611"}
| 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:c402804e-1847-a198-e115-f5db6e021a0e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D386:373734:4C6C4D:6AE69D:6970A9D9 |
| html-safe-nonce | eb70963d1bc3dbfaf39134c64dc0a6f0b96ab6dda39fb27f37123206acf53eb5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMzg2OjM3MzczNDo0QzZDNEQ6NkFFNjlEOjY5NzBBOUQ5IiwidmlzaXRvcl9pZCI6IjgzNDc2NjkzNzcyNjY5MTgwMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | df1f6d65be5a19750b7296a4a11b4c9fa9426a5b7762d70f0d33d6642b4b118f |
| hovercard-subject-tag | issue:3597846430 |
| 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/java-debug/611/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f2774518d415155671e82a9b1eee3a8ba4aeea2c746fa52e8078b4fdeac73a27/microsoft/java-debug/issues/611 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f2774518d415155671e82a9b1eee3a8ba4aeea2c746fa52e8078b4fdeac73a27/microsoft/java-debug/issues/611 |
| og:image:alt | Environment: Host OS: Windows 11, IDE: Cursor/VS Code Guest: WSL2 Ubuntu 22.04 Java: OpenJDK 1.8.0_432 (Java 8) Extensions: Debugger for Java 0.58.3 (latest), Language Support for Java 1.47.0 Sprin... |
| 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 | 5246860f280a060af866c1c633f74a6720ad2dd5d576534e4c5e462496b693ae |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/java-debug git https://github.com/microsoft/java-debug.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 102583752 |
| octolytics-dimension-repository_nwo | microsoft/java-debug |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 102583752 |
| octolytics-dimension-repository_network_root_nwo | microsoft/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 | 7d29ab0ba8deb7bbecf06b664759d4e847623783 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width