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

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

Đang mở
#282 1 bình luận 1 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
TypeScript
Star
447
Fork
76
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu với các hướng dẫn về chế độ attach trong README và tái hiện cấu hình bằng cách sử dụng thiết lập toàn cục không đúng của firefox.executable. Theo dõi cách quá trình khởi chạy attach đọc thiết lập đó và tạo ra lỗi; hoàn tất khi chế độ attach không còn yêu cầu một executable không được sử dụng, hoặc khi thông báo xác định rõ thiết lập toàn cục của extension.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
typescript, vscode
Lĩnh vực
developer-experience, tooling
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
45/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.