microsoft / microsoft/vscode-java-debug

Function breakpoint on constructor does not work e.g. java.io.PrintStream#PrintStream

オープン
#1,331 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

ai-triaged breakpoint bug feature request
主要言語
TypeScript
スター
591
フォーク
429
平均マージ
1日 9時間
マージ済み PR(30日)
19

説明

Function breakpoint on constructor does not work using syntax like java.io.PrintStream#PrintStream . I can set function breakpoint on methods like java.io.PrintStream#println .

In any program set function breakpoint on constructor of a library class constructor such as java.io.PrintStream#PrintStream or even user class:

package p;

public class UC {
    public UC() {
        System.out.println("In UC CTOR"); // Function breakpoint p.UC#UC should work and stop here.
    }
    public static void main(String[] args) {
        UC uc = new UC();
    }
}

Set function breakpoint: p.UC#UC

Current Result

Both function breakpoints java.io.PrintStream#PrintStream and p.UC#UC for constructors don't work.

Expected Result

Function breakpoints on constructors should work.

Additional Informations

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

提供された p.UC の例と java.io.PrintStream#PrintStream ブレークポイントを使って問題を再現し、動作する println ブレークポイントと比較します。Java デバッガーでコンストラクター名に対する function-breakpoint の処理を追跡し、その後、ライブラリのコンストラクターとユーザークラスのコンストラクターの両方のブレークポイントがコンストラクター本体で停止することを確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java, typescript, vscode
領域
devtools
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。