vscode-firefox-debug icon indicating copy to clipboard operation
vscode-firefox-debug copied to clipboard

Trying to debug but sourcemaps fail to load.

Open vrokolos opened this issue 6 years ago • 1 comments

DEBUG|014.337|DebugConnection: Received response/event {"from":"server1.conn2.child1/context19","type":"newSource","source":{"actor":"server1.conn2.child1/source1312","url":"http://localhost:51304/dial/app.js?build=","isBlackBoxed":false,"sourceMapURL":"app.js.map","introductionUrl":null,"introductionType":"scriptElement"}}
DEBUG|014.337|ThreadActorProxy: New source http://localhost:51304/dial/app.js?build= on thread server1.conn2.child1/context19
DEBUG|014.337|SourceMappingThreadActorProxy: Trying to sourcemap {"actor":"server1.conn2.child1/source1312","url":"http://localhost:51304/dial/app.js?build=","isBlackBoxed":false,"sourceMapURL":"app.js.map","introductionUrl":null,"introductionType":"scriptElement"}
DEBUG|014.355|SourceMappingThreadActorProxy: Received sourcemap
WARN |014.355|SourceMappingThreadActorProxy: Failed fetching sourcemap from http://localhost:51304/dial/app.js.map - giving up
DEBUG|014.356|PathConversion: Converted url http://localhost:51304/dial/app.js?build= to path J:\ctaf\server\Modules\Dialysis\app.js
DEBUG|014.356|SkipFilesManager: skipFile is not set for J:\ctaf\server\Modules\Dialysis\app.js

and http://localhost:51304/dial/app.js.map works fine in browser: {"version":3,"file":"app.js","sourceRoot":"","sources":["app.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,uEAAuE;AACvE,wEAAwE;AACxE,8DAA8D;A ...

vrokolos avatar Jun 19 '19 10:06 vrokolos

The log messages indicate that the sourcemap was loaded but couldn't be parsed using JSON.parse (see here). Try downloading the sourcemap file and opening it with VS Code (with file type JSON) to see if and why it is broken.

hbenl avatar Jun 19 '19 17:06 hbenl