b88c5a8d4f
This changes the way how we are handling instrumentation breakpoints. Motivation: with instrumentation breakpoints, we need a way to break on (conditional) breakpoints that were just set by the client on the instrumentation pause. How: We want to first find out if we have an instrumentation break, and trigger a pause. For this to work, we need to distinguish between regular and instrumentation breakpoints in the debugger back-end. On resume, we want to check if we have hit any breakpoints (may now contain new breakpoints due to the client setting new breakpoints at the previous instrumentation pause) and trigger a separate pause for them. Fixed: chromium:1292930 Change-Id: Idaadd276c44c693f856c4b08c7a72ea67271f420 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3442676 Reviewed-by: Benedikt Meurer <bmeurer@chromium.org> Reviewed-by: Jaroslav Sevcik <jarin@chromium.org> Reviewed-by: Andreas Haas <ahaas@chromium.org> Commit-Queue: Kim-Anh Tran <kimanh@chromium.org> Cr-Commit-Position: refs/heads/main@{#79053}
27 lines
914 B
Plaintext
27 lines
914 B
Plaintext
Test if breakpoints are hit that are set on instrumentation pause in js
|
|
|
|
Running test: testSetBreakpointOnInstrumentationPause
|
|
set breakpoint and evaluate script..
|
|
Setting breakpoint at instrumentation break location
|
|
Paused at foo.js with reason "instrumentation".
|
|
Hit breakpoints: []
|
|
Paused at foo.js with reason "other".
|
|
Hit breakpoints: ["4:0:20:3"]
|
|
Done.
|
|
|
|
Running test: testSetConditionalBreakpointTrueConditionOnInstrumentationPause
|
|
set breakpoint and evaluate script..
|
|
Setting breakpoint at instrumentation break location
|
|
Paused at foo.js with reason "instrumentation".
|
|
Hit breakpoints: []
|
|
Paused at foo.js with reason "other".
|
|
Hit breakpoints: ["4:0:20:4"]
|
|
Done.
|
|
|
|
Running test: testSetConditionalBreakpointFalseConditionOnInstrumentationPause
|
|
set breakpoint and evaluate script..
|
|
Setting breakpoint at instrumentation break location
|
|
Paused at foo.js with reason "instrumentation".
|
|
Hit breakpoints: []
|
|
Done.
|