microsoft / microsoft/vscode-java-debug

Feature request: set breakpoint on assert fail

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

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

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

説明

Feature request: set breakpoint on assert fail

Currently, when a Java assert fails, a stack trace is written to the terminal and the application ends. We know which assertion failed, but the application state is lost making it impossible to troubleshoot.

It would be nice to set this parameter in settings.json

"java.debug.breakOnAssertFail": true

Once this parameter has been implemented, when an assertion fails, the breakpoint pauses the application at the line where the assert failed, preserving the application state and allowing troubleshooting to proceed.

Eclipse has this feature; VSCode should too.

Thanks!

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

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

はじめの一歩

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

調査の方向性

Issue では settings.json と Java のアサーション失敗について言及されていますが、リポジトリのファイルやテストは特定されていません。まずアサーション失敗の処理と設定の登録箇所を見つけ、次にデバッガーの一時停止がどのように要求されるかを追跡してください。設定によって失敗したアサーションで一時停止でき、アプリケーションの状態が保持され、新しい動作のカバレッジがあることが完了の条件です。

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

評価

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

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

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