firefox-devtools / firefox-devtools/vscode-firefox-debug
Using the debugger inside a devcontainer
- Lenguaje dominante
- TypeScript
- Estrellas
- 447
- Forks
- 76
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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`:
```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
Guía de contribución
Línea de trabajo
Comienza con el launch.json suministrado y reproduce el fallo del breakpoint dentro del devcontainer usando la configuración de Firefox. Compara su gestión de archivos de origen con la configuración funcional de Edge y verifica que la ruta resuelta se abra en el contenedor en lugar de en el host; se considera terminado cuando la depuración de Firefox abre el archivo de origen correspondiente.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- typescript, vscode
- Área
- developer-experience, tooling
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100