microsoft / microsoft/vscode-java-debug

Breakpoint not working with spybean annotation

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

还没有人认领这个 Issue。

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

描述

It looks like when using the spybean annotation from junit jupyter the breakpoints don't work.
When I remove the annotation the breakpoint start working.

Environment
  • Operating System: Mac
  • JDK version: 21
  • Visual Studio Code version: 1.85.1
  • Java extension version: v0.25.15 (extension pack)
  • Java Debugger extension version: v0.55.0
Steps To Reproduce
  1. Open attached project in vscode (with java extension pack)
  2. Add breakpoint to lala method of b/src/main/java/test/b/BasicService.java
  3. Run the test method of junit class a/src/test/java/test/a/SimpleTest.java

testmultimoduledebug.zip

Current Result

The test don't stop on the breakpoint

Expected Result

The test stop on the breakpoint

贡献指南

打开贡献指南

从这里开始

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

调研方向

从附带的 testmultimoduledebug.zip 开始,在运行 a/src/test/java/test/a/SimpleTest.java 中的测试时,使用 b/src/main/java/test/b/BasicService.java 中的断点在 VS Code 中复现该问题。比较有无 spybean 注解时的调试情况;当存在该注解时测试在 lala 方法的断点处停止,即表示完成。

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

评估

技术栈
java, vscode
领域
devtools, testing-qa
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
描述清楚
新手友好度
48/100

把新 issue 发到你的邮箱

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