firefox-devtools / firefox-devtools/vscode-firefox-debug

Paths shown in Firefox and VSCode are different

オープン
#259 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
TypeScript
スター
447
フォーク
76
PR マージ指標
30日以内にマージされた PR はありません

説明

Hello, here is a screenshot of the problem:

![image](https://user-images.githubusercontent.com/48261497/120900774-18697f00-c637-11eb-944d-db2681681da0.png)

- Firefox displays the error location according to the source map
- VSCode displays the real error location

launch.json

I'm using parcel 2 beta 3.1

```jsonc
{
"version": "0.2.0",
"configurations": [
{
"type": "pwa-msedge",
"request": "launch",
"name": "Edge",
"url": "http://localhost:1234",
"webRoot": "${workspaceFolder}",
"sourceMapPathOverrides": {
"/__parcel_source_root/*": "${workspaceFolder}/*",
"../*": "${webRoot}/*"
}
},
{
"type": "firefox",
"request": "launch",
"name": "Firefox",
"url": "http://localhost:1234",
"webRoot": "${workspaceFolder}",
"reAttach": true,
"pathMappings": [
{
"path": "../*",
"url": "${webRoot}/*"
}
],
"clearConsoleOnReload": true,
"suggestPathMappingWizard": true
}
]
}
```

Is this behavior normal?

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

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

調査の方向性

提供されている launch.json 構成から始め、Firefox と VSCode の両方で Parcel 2 beta 3.1 のセットアップを再現します。各デバッガーが source-map のパスをどのように解決するかを比較します。異なる場所が想定されたものかどうかを判断し、そうでない場合は、修正が必要な debug adapter の動作を特定できれば完了です。

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

評価

技術スタック
typescript
領域
devtools
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

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

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