microsoft / microsoft/vscode-java-debug

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

未关闭
#612 0 条评论 3 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

ai-triaged bug step
主要语言
TypeScript
星标
591
派生
429
平均合并
1 天 9 小时
30 天内合并 PR
19

描述

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.

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

使用 test.java 和提供的 launch.json 重现该问题,在第 4 行和第 10 行设置断点,并单步跳过 lambda。将观察到的进入 HashMap.class 与预期的步进过滤器行为进行比较;完成标准是单步跳过 lambda,并按照配置避开标准库类。

由索引模型根据 Issue 内容生成。

评估

技术栈
java, typescript, vscode
领域
devtools
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
42/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。