Skip to content

Conversation

alexkozy
Copy link
Member

Original commit message:

inspector: added Debugger.setInstrumentationBreakpoint method

There are two possible type:

  • scriptParsed - breakpoint for any script,
  • scriptWithSourceMapParsed - breakpoint for script with
    sourceMappingURL.

When one of the breakpoints is set then for each matched script
we add breakpoint on call to top level function of that script.

Node: #24687

R=[email protected]

Bug: chromium:887384,chromium:724793,chromium:882909
Change-Id: I9c08b2a2a5ba7006adfedd85fc92ae191517af00
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1354245
Reviewed-by: Jakob Gruber [email protected]
Reviewed-by: Yang Guo [email protected]
Reviewed-by: Dmitry Gozman [email protected]
Reviewed-by: Alexei Filippov [email protected]
Commit-Queue: Aleksey Kozyatinskiy [email protected]
Cr-Commit-Position: refs/heads/master@{#61353}

Issue: #24687

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot nodejs-github-bot added the v8 engine Issues and PRs related to the V8 dependency. label May 15, 2019
@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@BridgeAR
Copy link
Member

@nodejs/inspector PTAL

Original commit message:

inspector: added Debugger.setInstrumentationBreakpoint method

There are two possible type:
- scriptParsed - breakpoint for any script,
- scriptWithSourceMapParsed - breakpoint for script with
  sourceMappingURL.

When one of the breakpoints is set then for each matched script
we add breakpoint on call to top level function of that script.

Node: nodejs#24687
@alexkozy alexkozy changed the base branch from master to canary-base August 2, 2019 18:10
@alexkozy alexkozy changed the base branch from canary-base to master August 2, 2019 18:10
@alexkozy alexkozy changed the base branch from master to v12.x August 2, 2019 18:11
@alexkozy
Copy link
Member Author

alexkozy commented Aug 2, 2019

This commit adds a method that is required to provide better-debugging experience for scripts with source maps by different IDE, e.g. VSCode. If we backport it to Node 12, we can get this support in VSCode faster.

At the same time, this commit only adds the minor feature to protocol and does not change anything around, so the risk that it breaks something is minimal.

@alexkozy
Copy link
Member Author

alexkozy commented Aug 7, 2019

V8 backport which includes this commit is coming: #28955

@alexkozy alexkozy closed this Aug 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v8 engine Issues and PRs related to the V8 dependency.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants