Debugger opens *.class file despite there being an overridden *.java file in the project's src folder
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 42/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- java, typescript
- Ambito
- devtools
Direzione di ricerca
Clonate il repository java-debug-demo collegato sul branch does-not-work e riproducete il breakpoint in other/src/main/java/tech/tablesaw/table/Relation.java durante il debug di run/src/main/java/com/project/my/run/Main.java. Confrontate il risultato con il branch works ed esaminate il file allegato language-support-for-java.log. Il lavoro è completato quando il debugger apre Relation.java dell'altro modulo con le modifiche dell'utente invece della Relation.class della dipendenza.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
When debugging a project where I have put copies of Java files from a dependency in my project's src folder (but in another module) to adjust its behavior, and placing break points in these overwritten Java files, the debugger always opens the *.class file of the dependency, which does not contain my changes.
Example project which works: https://github.com/marecabo/java-debug-demo/tree/works
Example project where this issue occurs: https://github.com/marecabo/java-debug-demo/tree/does-not-work
Environment
- Operating System:
RHEL 8.9 - JDK version:
openjdk 21.0.2 2024-01-16 LTS - Visual Studio Code version:
1.88.1 - Java extension version:
v1.29.0 - Java Debugger extension version:
v0.57.0
Steps To Reproduce
- Checkout example project:
git clone -b does-not-work https://github.com/marecabo/java-debug-demo.git - Place a breakpoint in
other/src/main/java/tech/tablesaw/table/Relation.java:261.
This file overrides a file from a dependency and changes its behavior, see https://github.com/marecabo/java-debug-demo/commit/40bb99b2a213d8f93fe56e77a961562c2be7ac8f
- Debug
run/src/main/java/com/project/my/run/Main.java
Current Result
Relation.class is opened which obviously does not show the changes I made in Relation.java. The execution marker (yellow highligted line) is - however - at the line number of the original breakpoint in other/src/main/java/tech/tablesaw/table/Relation.java:261, even if that line in Relation.class only contains } or is even empty.
Expected Result
other/src/main/java/tech/tablesaw/table/Relation.java is opened with my changes.
Additional Informations
So far I found out, that this issue only occurs, when the overridden Java file is not located in the same maven module, where the main class which is debugged resides. As a workaround, moving the overridden Relation.java file to the run module is enough to make it work as expected.
Thanks for your work at this extension.
- Lingua principale
- TypeScript
- Stelle
- 591
- Fork
- 429
- Merge medio
- 1g 9h
- PR unite (30g)
- 19
Guida per i contributori
Apri la guida per i contributori
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/vscode-java-debug
-
ai-triaged enhancement
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
microsoft/vscode-java-debug#1689 · 2 commenti ·
-
ai-triaged bug
microsoft/vscode-java-debug#1666 · 1 commento · 1 assegnatario ·
-
ai-triaged bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 48/100
microsoft/vscode-java-debug#1658 · 1 commento ·
-
ai-triaged enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
microsoft/vscode-java-debug#1628 · 3 commenti ·
-
Feature support. Apertaai-triaged enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
microsoft/vscode-java-debug#1616 · 1 commento ·
Tutte le issue di microsoft/vscode-java-debug
Issue simili
-
[Bug]: Discord Activity titles with emoji are rejected as over 80 characters when they are not Apertaclawsweeper:linked-pr-open clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:message-loss issue-rating: 🦞 diamond lobster maturity:stable P2
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
Eynzof/Hermes-CN-Desktop#616 ·
-
ZCode 3.14.3 に対応する Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
supermomonga/zcode-acp#24 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
growthbook/growthbook#7100 ·
-
triage
Difficoltà 1/5 1-3 ore Idoneità per principianti 88/100