firefox-devtools / firefox-devtools/vscode-firefox-debug
Extension chokes on sourcemap when debugging addons
- Lenguaje dominante
- TypeScript
- Estrellas
- 447
- Forks
- 76
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
Hi,
I'm trying to debug a simple FF add-on that I'm packaging with Parcel. *vscode-firefox-debug* loads the extension and it runs fine. The problem is I'm unable to set/hit break points.
I played around with many launch configuration *pathMappings* combinations without success. I then enabled logging in the launch definition and I now get the following error report when I start a debug session:
```
INFO |000.178|PathConversion: Can't convert url data:application/json;charset=utf-8;base64,eyJtYXBwaW5ncyI6Ijs7...
```
The problem URL is the data sourcemap URL added at the end of the associated JS file packaged by Parcel.
I don't think the sourcemap URL is corrupted as I can load the Parcel generated JS files using the VSCODE *colder.source-map-visualization* extension without complaint.
Is there a work round for this?
Cheers, Steve
Guía de contribución
Línea de trabajo
Empieza reproduciendo una sesión de depuración para un complemento de Firefox empaquetado con Parcel e inspecciona los pathMappings de la definición de lanzamiento y la salida del registro. Sigue el procesamiento de PathConversion de la URL de sourcemap data:application/json añadida al JavaScript generado. La tarea estará terminada cuando la sesión acepte la sourcemap y se puedan establecer y alcanzar los breakpoints.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- typescript, vscode
- Área
- devtools
- 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