Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Breakpoints set in a Dart web app with vscode are not being before the app runs

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
58/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
dart, vscode
領域
devtools, web-dev

調査の方向性

example ディレクトリの動作を example/web/main.dart を使って再現し、13 行目と 23 行目にブレークポイントを設定して、VS Code のデバッグ UI から再起動します。まず、Dart の Web デバッグセッションが hot restart の間にブレークポイントをどのように処理するかを追跡します。再起動後に 13 行目のブレークポイントで停止し、23 行目のブレークポイントが引き続き機能すれば完了です。

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

説明

P2 package:dwds triaged type-bug

Repro:

  1. Open the example directory (https://github.com/dart-lang/webdev/tree/main/example) in vscode.
  2. Set a breakpoint in main.dart on line 13. https://github.com/dart-lang/webdev/blob/5b7299f5b85706536aeac1c9f470b869ddb39fef/example/web/main.dart#L13
  3. Click the debug link vscode inserts above the main method.

You should see the app build and start running, chrome pops up and there will be prints appearing in the vscode debug console.

Initial Print :)
Counter is now: 1
Counter is now: 2
Counter is now: 3
Counter is now: 4
...
  1. Now add a breakpoint on line 23. https://github.com/dart-lang/webdev/blob/5b7299f5b85706536aeac1c9f470b869ddb39fef/example/web/main.dart#L23

You should see execution will pause.

  1. Click the "Restart" button in the vscode debugging UI to hot restart the app.

You should see that the breakpoint on line 13 is skipped again but the breakpoint on line 23 still works.

主要言語
Dart
スター
224
フォーク
95
平均マージ
3日 8時間
マージ済み PR(30日)
7

環境構築

はじめの一歩

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

dart-lang/webdev のほかの issue

dart-lang/webdev の issue をすべて見る

似ている issue

Dart の issue をもっと見る

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

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