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

未關閉
#612 0 則留言 3 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
42/100
Issue 類型
缺陷
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
java, typescript, vscode
領域
devtools

研究方向

使用 test.java 和提供的 launch.json 重現此問題,在第 4 行和第 10 行設定中斷點,並單步跳過 lambda。比較觀察到進入 HashMap.class 的情況與預期的步進篩選器行為;完成標準是單步跳過 lambda,並依照設定避開標準函式庫類別。

由索引模型根據 Issue 內容生成。

描述

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.

主要語言
TypeScript
星號
591
分支
429
平均合併
1 天 9 小時
30 天內合併 PR
19

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

microsoft/vscode-java-debug 的其他 Issue

查看 microsoft/vscode-java-debug 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。