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

Debugger and current debugging line are both misplaced

Abierto
#335 6 comentarios 5 reacciones 0 asignados Ver en GitHub
bug sourcemaps
Lenguaje dominante
TypeScript
Estrellas
447
Forks
76
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

This is the only thing currently keeping me from switching to firefox

[Repo to reproduce](https://github.com/ldiane/vfd)

Repro steps:
```
add launch.json from below
npm install
npm run dev
In src/App.vue add a breakpoint between line 5 and 8
Start debugging
```

I am trying to debug from vscode a vue 3 with TS and vite project

As stated in the [docs](https://marketplace.visualstudio.com/items?itemName=firefox-devtools.vscode-firefox-debug) i did:

> open the Developer Tools Settings and check the checkboxes labeled “Enable browser chrome and add-on debugging toolboxes” and “Enable remote debugging”

and executed Firefox as follows

`"C:\Program Files\Mozilla Firefox\firefox.exe" -start-debugger-server`

The problem is that the debugger is all jumpy and doesn’t hit the correct line:
![image](https://github.com/firefox-devtools/vscode-firefox-debug/assets/62384847/88665aa1-0c6e-4671-b5c0-4dd5416c49b4)

Here is my launch.json (the one for chrome works perfectly well)

```
{
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "attach",
"name": "Attach to Chrome",
"port": 9222,
"webRoot": "${workspaceFolder}",
"urlFilter": "http://127.0.0.1:4000/*"
},
{
"name": "Attach to Firefox",
"type": "firefox",
"request": "attach",
"url": "http://127.0.0.1:4000",
"webRoot": "${workspaceFolder}",
"pathMappings": [
{
"url": "http://127.0.0.1:4000/src",
"path": "${workspaceFolder}/src"
}
]
}
]
}
```

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Usa el repositorio vfd enlazado y su launch.json para reproducir el problema: ejecuta npm install y npm run dev, después establece un breakpoint en src/App.vue entre las líneas 5 y 8 e inicia la configuración de Firefox. Compara la posición del depurador y la línea de depuración actual con la configuración funcional de Chrome; se considera terminado cuando Firefox se detiene en la línea de código fuente correcta.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
typescript, vite, vscode
Área
devtools
Tipo de issue
Error
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.