firefox-devtools / firefox-devtools/vscode-firefox-debug
Extension chokes on sourcemap when debugging addons
- Lingua principale
- TypeScript
- Stelle
- 447
- Fork
- 76
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia riproducendo una sessione di debug per un componente aggiuntivo Firefox pacchettizzato con Parcel e ispeziona i pathMappings della definizione di avvio e l'output del logging. Traccia la gestione da parte di PathConversion dell'URL della sourcemap data:application/json aggiunta al JavaScript generato. L'attività è completata quando la sessione accetta la sourcemap e i breakpoint possono essere impostati e raggiunti.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- typescript, vscode
- Ambito
- devtools
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100