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

Using the debugger inside a devcontainer

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

Nessuno ha ancora preso questa issue.

Valutazione

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

Direzione di ricerca

Inizia con il launch.json fornito e riproduci il problema del breakpoint all’interno del devcontainer usando la configurazione Firefox. Confronta la gestione dei file sorgente con quella della configurazione Edge funzionante e verifica che il percorso risolto venga aperto nel container invece che sull’host; il lavoro è completato quando il debugging di Firefox apre il file sorgente corrispondente.

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

Descrizione

bug remote development

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

Lingua principale
TypeScript
Stelle
446
Fork
76
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.