microsoft / microsoft/vscode-java-debug
Function breakpoint on methods of static inner classes does not work
まだ誰も着手していません。
- 主要言語
- TypeScript
- スター
- 591
- フォーク
- 429
- 平均マージ
- 1日 9時間
- マージ済み PR(30日)
- 19
説明
I am able to set the function breakpoint on methods of top level class e.g.
com.example.starstar.StarstarApplication#main
but the same does not work for methods of inner static class methods e.g.
com.example.starstar.StarstarApplication.RootController#root
@SpringBootApplication
public class StarstarApplication {
public static void main(String[] args) {
SpringApplication.run(StarstarApplication.class, args);
}
@RestController
public static class RootController {
@GetMapping("/")
public String root() {
return "Hello World";
}
}
}
Environment
- Operating System: Any
- JDK version: JDK17
- Visual Studio Code version: 1.79.2
- Java extension version: v1.20.0
- Java Debugger extension version: v0.52.0
Steps To Reproduce
- Set function breakpoint on method of top level class
- Set function breakpoint on method of static inner class
Run the program.
The function breakpoint on method of top level class works.
The function breakpoint on method of static inner class does not work.
Current Result
The function breakpoint on method of static inner class does not work.
Expected Result
The function breakpoint on method of static inner class should work.
Additional Information
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
提供された StarstarApplication の例を使って関数ブレークポイントの動作を再現し、JDK 17 で top-level main と static inner RootController#root を比較します。Java デバッガーが各メソッドブレークポイントをどのように解決するかを追跡します。inner class のメソッドブレークポイントがバインドされ、root endpoint の実行時に停止すれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java, typescript
- 領域
- devtools
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100