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

Extension chokes on sourcemap when debugging addons

Open
#326 0 comments 0 reactions 0 assignees View on GitHub
bug sourcemaps
Dominant language
TypeScript
Stars
447
Forks
76
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.