Using the debugger inside a devcontainer
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- typescript, vscode
調査の方向性
提供された launch.json から始め、Firefox 構成を使用して devcontainer 内でブレークポイントの失敗を再現します。ソースファイルの扱いを動作する Edge 構成と比較し、解決されたパスがホストではなくコンテナー内で開かれることを確認します。完了の条件は、Firefox のデバッグで対応するソースファイルが開くことです。
索引モデルが issue の本文から書いたものです。
説明
Hi there,
I am trying to debug an issue inside my react app when using the Firefox browser. My app resides inside a devcontainer because my backend app is also residing there.
When I try to debug the issue and set a breakpoint the debugger stops apparently at the line. But the corresponding source file can't be open. This is kinda weird because when I use the Edge debugger extension for example everything is working fine. Also the path to file which can't be opened is valid inside the container. I checked that. The error message is:
The editor could not be opened because the file was not found.
This is my launch.json:
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch frontend (yarn)",
"type": "node",
"request": "launch",
"runtimeExecutable": "yarn",
"cwd": "${workspaceFolder}/interface",
"runtimeArgs": ["start"],
"console": "integratedTerminal"
},
{
"type": "firefox",
"request": "launch",
"name": "Debug frontend in Firefox",
"url": "http://localhost:3000",
"webRoot": "${workspaceFolder}/interface/",
},
{
"type": "msedge",
"request": "launch",
"name": "Debug frontend in Edge",
"url": "http://localhost:3000",
"webRoot": "${workspaceFolder}/interface/",
}
]
}
I dug a little bit deeper and it seems that the debug extension is trying to open the file on my host environment which of course can't work because the layout is totally different. The Edge extension seem to open file inside the devcontainer just fine. Maybe the issue resides here?
Using vscode version: 1.83.1
Firefox extension version: v2.9.10
Firefox version: 118.0.2
Cheers
Daniel
- 主要言語
- TypeScript
- スター
- 445
- フォーク
- 77
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
firefox-devtools/vscode-firefox-debug のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
firefox-devtools/vscode-firefox-debug#391 · コメント 2 件 · リアクション 1 件 ·
-
bug path mapping
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
-
Castleオープン
難易度 5/5 1週間以上 初心者へのやさしさ 10/100
firefox-devtools/vscode-firefox-debug の issue をすべて見る
似ている issue
-
[测试] 等待仓库加载后再记录多仓库排序基线対応中かも @myot233 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
area:arcade p3-medium ready-for-agent testing type:docs
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
fderuiter/deruiter.dev#2369 ·
メンテナーはふだん 1 日以内に返信
-
area:devenv origin:agent type:bug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
overengineeringstudio/effect-utils#1949 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
ccch1mneyyy/dsh-TUI#1631 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
MiniMax-AI/minimax-code#507 ·
メンテナーはふだん 1 日以内に返信