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

"Couldn't find the Firefox executable" when launching in attach mode

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

説明

I am getting the `Couldn't find the Firefox executable` when launching in attach mode. I am asking myself now if this is a wanted behaviour, since I wouldn't expect that the executable is needed for that.

## Background
I was following the instructions for launching in `attach` mode [in the README](https://github.com/firefox-devtools/vscode-firefox-debug#attach).
Accordingly, I have set up a `launch.json` that contained the recommended block:
``` json
{
"version": "0.2.0",
"configurations": [
{
"name": "Attach to localhost",
"type": "firefox",
"request": "attach",
"url": "http://127.0.0.1/"
}
]
}
```
My firefox had the necessary `about:config` changes and launched fine in debug mode with
``` bash
"C:\Program Files\Mozilla Firefox\firefox.exe" -start-debugger-server
```
When I launched the debug session in vscode with this configuration I got the `Couldn't find the Firefox executable` error.

## Cause
The `firefox.executable` config was set globally to a wrong location.

Two things that I think would have improved my situation
- the error message would point out that this is set in the global extension settings
- the error would not be thrown since (correct me if I am wrong) the executable is not called at all in `attach` mode

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

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

調査の方向性

README の attach モードの手順から始め、誤ったグローバル firefox.executable 設定を使って構成を再現します。attach 起動がその設定をどのように読み取り、エラーを生成するかを追跡します。attach モードで未使用の executable が不要になるか、メッセージがグローバルな拡張機能設定を明確に示せば完了です。

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

評価

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

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

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