-
Notifications
You must be signed in to change notification settings - Fork 336
Description
We got a lot of unhandled rejections in VS with that message. If we can't parse the sourcemap, there is a possibility that we won't be able to bind some breakpoints. It'd be great if we could print some message in the console, or similar, and also set the status of any unbound breakpoint to say: "This might be caused because source-map aaa.js.map couldn't be parsed because...."
These are the stack traces that we got:
[
Error: Error parsing mappings (code 4): invalid base 64 character while parsing a VLQ
at l._parseMappings (source-map-consumer.js:360:13)
at l._getMappingsPtr (source-map-consumer.js:315:12)
at f (source-map-consumer.js:510:14)
at Object.withMappingCallback (wasm.js:95:11)
at l.originalPositionFor (source-map-consumer.js:508:16)
at t.SourceMap.originalPositionFor (sourceMap.js:61:30)
at O.getOptiminalOriginalPosition (sources.js:491:31)
at O._sourceMappedUiLocation (sources.js:448:28)
at O.preferredUiLocation (sources.js:394:39)",
"Error: Error parsing mappings (code 4): invalid base 64 character while parsing a VLQ
at l._parseMappings (source-map-consumer.js:360:13)
at l._getMappingsPtr (source-map-consumer.js:315:12)
at f (source-map-consumer.js:510:14)
at Object.withMappingCallback (wasm.js:95:11)
at l.originalPositionFor (source-map-consumer.js:508:16)
at t.SourceMap.originalPositionFor (sourceMap.js:61:30)
at O.getOptiminalOriginalPosition (sources.js:491:31)
at O._sourceMappedUiLocation (sources.js:448:28)
at O.uiLocation [as preferredUiLocation] (sources.js:394:39)
at k._onConsoleMessage (threads.js:777:17)",
"Error: Error parsing mappings (code 4): invalid base 64 character while parsing a VLQ
at l._parseMappings (source-map-consumer.js:360:13)
at l._getMappingsPtr (source-map-consumer.js:315:12)
at f (source-map-consumer.js:510:14)
at Object.withMappingCallback (wasm.js:95:11)
at l.originalPositionFor (source-map-consumer.js:508:16)
at t.SourceMap.originalPositionFor (sourceMap.js:61:30)
at O.getOptiminalOriginalPosition (sources.js:491:31)
at O._sourceMappedUiLocation (sources.js:448:28)
at O.preferredUiLocation (sources.js:394:39)
at runNextTicks (internaltask_queues.js:58:5)",
"Error: Error parsing mappings (code 4): invalid base 64 character while parsing a VLQ
at l._parseMappings (source-map-consumer.js:360:13)
at l._getMappingsPtr (source-map-consumer.js:315:12)
at f (source-map-consumer.js:510:14)
at Object.withMappingCallback (wasm.js:95:11)
at l.originalPositionFor (source-map-consumer.js:508:16)
at t.SourceMap.originalPositionFor (sourceMap.js:61:30)
at O.getOptiminalOriginalPosition (sources.js:491:31)
at O._sourceMappedUiLocation (sources.js:448:28)
at O.uiLocation [as preferredUiLocation] (sources.js:394:39)
at a (smartStepping.js:9:11)"
]