Skip to content
This repository has been archived by the owner on Oct 2, 2021. It is now read-only.

Support inlined sources #85

Closed
roblourens opened this issue Aug 27, 2016 · 5 comments
Closed

Support inlined sources #85

roblourens opened this issue Aug 27, 2016 · 5 comments

Comments

@roblourens
Copy link
Member

If local sources can't be resolved, use the sources inlined in the sourcemap

@auchenberg
Copy link
Contributor

auchenberg commented Sep 19, 2016

How does the inline source mapped file show up inside the editor? As a "virtual file" like in Chrome DevTools?

@roblourens
Copy link
Member Author

It doesn't show up in the file explorer, you can only see the source if you step in to it, or have a debugger keyword, or something. But once you see the source, you can set more breakpoints in it.

@roblourens
Copy link
Member Author

Relevant - microsoft/vscode#11947

@auchenberg
Copy link
Contributor

Got it, so as virtualized file. Could be interesting to do some fuzzy match on the file-contents, and map it that way as a last resort.

@spencerhakim
Copy link

I'm having trouble with this using vscode-node-debug2 and babel-register. Using breakpoints or a debugger; statement both result in the same behavior: my original source file is displayed (from the file system, not as a virtual file), but the debugger points at the wrong lines as I step through it, to the point where it thinks I've reached the end of my test file before it's even executed the first console.log. I've verified that base64 inline maps are generated.

Not sure if this is the right issue or project to report this, but it seemed like the most relevant.

@vscodebot vscodebot bot locked and limited conversation to collaborators Mar 22, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants