microsoft / microsoft/vscode-java-debug

Stepping over a false conditional breakpoint stops the stepping and just continues.

未关闭
#1,535 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

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

描述

public class DebugTest {

  public static void main(String[] args) {
    int x = 0;
    foo();
    x++;
    x++;
  }

  public static void foo() {
    int y = 0;
  }
}

With this example In put a conditional breakpoint with condition false on int y= 0. Then I put a breakpoint on int x = 0; and used Step Over. After stepping over foo I didn't hit the later lines and the program just continues. Disabling the conditional breakpoint makes stepping over work as I would expect (went from foo() to x++).

贡献指南

打开贡献指南

从这里开始

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

调研方向

首先,在 vscode-java-debug 中使用位于 int y = 0 上的错误条件断点复现 Java 示例,然后比较禁用该断点时 Step Over 的行为。当从 foo() 单步执行能够到达后面的 x++ 行,而不是继续执行时,修复就完成了。

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

评估

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

把新 issue 发到你的邮箱

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