Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#282 1 commento 1 reazione 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
typescript, vscode

Direzione di ricerca

Inizia con le istruzioni per la modalità attach nel README e riproduci la configurazione utilizzando un’impostazione globale errata di firefox.executable. Traccia il modo in cui l’avvio in modalità attach legge tale impostazione e produce l’errore; il lavoro è completato quando la modalità attach non richiede più un executable inutilizzato, oppure quando il messaggio identifica chiaramente l’impostazione globale dell’estensione.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.
Accordingly, I have set up a launch.json that contained the recommended block:

{
    "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

"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
Lingua principale
TypeScript
Stelle
446
Fork
77
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di firefox-devtools/vscode-firefox-debug

Tutte le issue di firefox-devtools/vscode-firefox-debug

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.