Breakpoints set in a Dart web app with vscode are not being before the app runs
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 58/100
調査の方向性
example ディレクトリの動作を example/web/main.dart を使って再現し、13 行目と 23 行目にブレークポイントを設定して、VS Code のデバッグ UI から再起動します。まず、Dart の Web デバッグセッションが hot restart の間にブレークポイントをどのように処理するかを追跡します。再起動後に 13 行目のブレークポイントで停止し、23 行目のブレークポイントが引き続き機能すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Repro:
- Open the example directory (https://github.com/dart-lang/webdev/tree/main/example) in vscode.
- Set a breakpoint in main.dart on line 13. https://github.com/dart-lang/webdev/blob/5b7299f5b85706536aeac1c9f470b869ddb39fef/example/web/main.dart#L13
- 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
...
- 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.
- 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
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
dart-lang/webdev のほかの issue
-
[dwds] WebkitDebugger.enable 5-second hardcoded timeout causes TimeoutException on large web apps対応中かも @Markzipan が今日担当しました。 オープンP1 package:dwds triaged type-bug
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
-
P2 triaged
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
-
P3 triaged
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
-
P2 package:dwds triaged type-bug
難易度 3/5 1〜2日 初心者へのやさしさ 38/100
-
P2 package:dwds triaged type-bug
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
dart-lang/webdev の issue をすべて見る
似ている issue
-
'图片收藏'功能无法滑动オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
venera-app/venera-prime#50 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Tencent/tdesign-flutter#1229 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
VeryGoodOpenSource/very_good_analysis#254 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
flutter/agent-plugins#253 ·