[WSL] Breakpoints fail to bind when attaching to JVM in WSL2 after Debugger for Java 0.58.3 update; rollback fixes
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Tranquilla
- Stack tecnologico
- java, spring-boot, vscode
- Ambito
- devtools
Direzione di ricerca
Inizia riproducendo lo scenario WSL2 con il comando JDWP fornito, Windows VS Code o Cursor e un breakpoint nel controller, quindi confronta Debugger for Java 0.58.3 con 0.58.2. Analizza il comportamento di attach e dei breakpoint di java-debug usando i punti di ingresso esistenti del repository. Il lavoro è completo quando i breakpoint riprendono correttamente in WSL2, mentre il comportamento nativo di Windows rimane invariato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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 via JDWP attach on port 5005.
Expected:
Attaching from Windows (Cursor/VS Code) to a JDWP-enabled JVM in WSL2 stops at breakpoints in my project code.
Actual:
After 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.
Rolling both extensions back (Debugger for Java 0.58.2 and Language Support for Java 1.46.0) restores proper behaviour.
Repro steps:
- Build and run the Spring Boot jar in WSL2 with JDWP:
java -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005 \
-Dspring.profiles.active=local -Duser.timezone=UTC \
-jar build/libs/your-app.jar
- In Windows Cursor/VS Code, attach to 127.0.0.1:5005 (port forwarded via Remote - WSL).
- Set a breakpoint in any controller method.
- Send an HTTP request hitting that controller.
- Observe: request hangs but IDE never shows breakpoint. Meanwhile,
jdbattach shows that the breakpoint is hit.
Notes:
- 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.
address=*:5005can't be used with Java 8 due togethostbynameerrors.- This seems like a regression introduced in 0.58.3 (or 0.58.3 + language server update). Rolling back fixes the issue.
Thanks for looking into this.
- Lingua principale
- Java
- Stelle
- 409
- Fork
- 204
- Merge medio
- 1g 13h
- PR unite (30g)
- 4
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di microsoft/java-debug
-
ai-triaged enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
microsoft/java-debug#608 · 3 commenti ·
-
ai-triaged question
Difficoltà 5/5 Più di una settimana Idoneità per principianti 30/100
microsoft/java-debug#597 · 1 commento ·
-
ai-triaged bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
microsoft/java-debug#588 · 1 commento ·
-
Is Hamcrest a dependency? Apertaai-triaged question
Difficoltà 2/5 1-3 ore Idoneità per principianti 35/100
microsoft/java-debug#582 · 1 commento ·
-
ai-triaged enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
microsoft/java-debug#580 · 2 commenti ·
Tutte le issue di microsoft/java-debug
Issue simili
-
Bug Java Platform: Java
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
getsentry/sentry-java#6138 · 1 commento ·
-
bug needs triage p2
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
GoogleCloudPlatform/DataflowTemplates#4273 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
-
bug needs triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100