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

Bind unverified breakpoints when the sourcemap can only be found after the script is loaded #106

Closed
roblourens opened this issue Sep 22, 2016 · 1 comment
Labels

Comments

@roblourens
Copy link
Member

The existing Node debugger only binds breakpoints in source if their sourcemaps can be found from outDir/outFiles ahead of time, but there are some scenarios where sourcemaps can't be resolved ahead of time, or don't exist on disk.

To handle this, the adapter needs to hold on to unbound bp info, and when a script is loaded and new sourcemaps are resolved, it needs to bind those bps and send BreakpointEvents informing the frontend that the bps are now bound.

There are a few relevant scenarios in Node like with SystemJS and Babel dynamic require, but it's more important in browser scenarios where we can't resolve URL -> script until the script is loaded (without adding yet another config parameter). Used to work in Chrome until I started using configurationRequest, so I hope to create the full fix soon.

@roblourens roblourens added the bug label Sep 22, 2016
@roblourens
Copy link
Member Author

Leftover from #38

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant