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

Pending breakpoints aren't resolved at startup unless their scripts have sourcemaps #121

Closed
roblourens opened this issue Oct 28, 2016 · 1 comment
Labels

Comments

@roblourens
Copy link
Member

In a webserver or webpack/meteor-type scenario, when we can't anticipate the scripts path in the runtime, needed to make breakpoints bind at startup. Workaround - set the breakpoints after the script is loaded instead of before.

@roblourens roblourens added the bug label Oct 28, 2016
@roblourens
Copy link
Member Author

const sourceMapsP = this._sourceMapTransformer.scriptParsed(mappedUrl, script.sourceMapURL).then(sources => {
            if (sources) {
                sources.forEach(source => {
                    if (this._pendingBreakpointsByUrl.has(source)) {
                        this.resolvePendingBreakpoint(this._pendingBreakpointsByUrl.get(source))
                            .then(() => this._pendingBreakpointsByUrl.delete(source));
                    }
                });
            }
        });

@roblourens roblourens changed the title Pending breakpoints aren't resolved unless their scripts have sourcemaps Pending breakpoints aren't resolved at startup unless their scripts have sourcemaps Oct 29, 2016
@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.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant