Can't step over breakpoint on lambda expression/step filters ignored

Offen
#612 0 Kommentare 3 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
42/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
java, typescript, vscode
Bereich
devtools

Rechercherichtung

Reproduziere das Problem mit test.java und der bereitgestellten launch.json, setze Haltepunkte in den Zeilen 4 und 10 und führe einen Schritt über den Lambda-Ausdruck aus. Vergleiche den beobachteten Einstieg in HashMap.class mit dem erwarteten Verhalten des Schrittfilters; als erledigt gilt, wenn der Schritt über den Lambda-Ausdruck ausgeführt wird und Standardbibliotheksklassen wie konfiguriert vermieden werden.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

ai-triaged bug step

If you set a breakpoint on a line of code containing a lambda expression, attempts to step over the code will result in a step into the code. If the lambda expression is a function of the standard library and your step filters are enabled, you will still have to trudge through many .class files.

Environment
  • Operating System: Windows 10
  • JDK version: 1.8.0_181
  • Visual Studio Code version: 1.37.0-insider (system setup)
  • Java extension version: 0.7.1 (assuming this refers to the Java Extension Pack)
  • Java Debugger extension version: 0.20.0
Steps To Reproduce
  1. Extract this to a folder and open that folder in vscode.

  2. Set breakpoints on lines 4 and 10 of test.java

  3. Debug test.java with the provided launch.json

  4. Repeatedly step-in until you have reached line 10. Observe that the debugger has not forced you to view the HashMap.class file or any of the standard libraries.

  5. Attempt to step-over line 10. Observe that the debugger has stepped-in.

  6. Attempt to step-over again. Observe that you are now viewing the HashMap.class file, despite the settings in launch.json, which should have prevented this.

Current Result

Stepping over a lambda expression with a breakpoint will step in, even if your step filters should prevent this.

Expected Result

Stepping over a lambda expression with a breakpoint should step over the expression. Regardless, step filters should prevent viewing of standard libraries.

Additional Informations

I already tried this on the current stable build of vscode - same problem there as well.

Vorherrschende Sprache
TypeScript
Sterne
591
Forks
429
Ø Merge
1 T. 9 Std.
Gemergte PRs (30 T.)
19

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus microsoft/vscode-java-debug

Alle Issues in microsoft/vscode-java-debug

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.