firefox-devtools / firefox-devtools/vscode-firefox-debug
Extension chokes on sourcemap when debugging addons
- Vorherrschende Sprache
- TypeScript
- Sterne
- 447
- Forks
- 76
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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
Beitragsleitfaden
Rechercherichtung
Beginne damit, eine Debug-Sitzung für ein mit Parcel paketiertes Firefox-Add-on zu reproduzieren, und untersuche die pathMappings der Startdefinition und die Logging-Ausgabe. Verfolge die Verarbeitung von PathConversion für die an das generierte JavaScript angehängte data:application/json-Sourcemap-URL. Die Aufgabe ist abgeschlossen, wenn die Sitzung die Sourcemap akzeptiert und Breakpoints gesetzt und erreicht werden können.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- typescript, vscode
- Bereich
- devtools
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100