97283b872f
Calling didContinue() after having paused on an instrumentation break clears the breakpoint reasons that were stored in the debugger agent. This removes clearBreakDetails() from didContinue() and specifically calls it if we need it. Drive-by: removing left-over dead code Bug: chromium:1229541 Change-Id: I49f598d0e97801661e003c3911967c64ea63373e Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3477099 Reviewed-by: Jaroslav Sevcik <jarin@chromium.org> Commit-Queue: Kim-Anh Tran <kimanh@chromium.org> Cr-Commit-Position: refs/heads/main@{#79203}
127 lines
2.6 KiB
Plaintext
127 lines
2.6 KiB
Plaintext
Debugger.setInstrumentationBreakpoint
|
|
|
|
Running test: testSetTwice
|
|
set breakpoint..
|
|
{
|
|
breakpointId : <breakpointId>
|
|
}
|
|
set breakpoint again..
|
|
{
|
|
error : {
|
|
code : -32000
|
|
message : Instrumentation breakpoint is already enabled.
|
|
}
|
|
id : <messageId>
|
|
}
|
|
remove breakpoint..
|
|
{
|
|
id : <messageId>
|
|
result : {
|
|
}
|
|
}
|
|
|
|
Running test: testScriptParsed
|
|
set breakpoint and evaluate script..
|
|
paused with reason: instrumentation
|
|
{
|
|
scriptId : <scriptId>
|
|
url : foo.js
|
|
}
|
|
set breakpoint and evaluate script with sourceMappingURL..
|
|
paused with reason: instrumentation
|
|
{
|
|
scriptId : <scriptId>
|
|
sourceMapURL : map.js
|
|
url : foo.js
|
|
}
|
|
remove breakpoint..
|
|
{
|
|
id : <messageId>
|
|
result : {
|
|
}
|
|
}
|
|
evaluate script again..
|
|
|
|
Running test: testScriptWithSourceMapParsed
|
|
set breakpoint for scriptWithSourceMapParsed..
|
|
evaluate script without sourceMappingURL..
|
|
evaluate script with sourceMappingURL..
|
|
paused with reason: instrumentation
|
|
{
|
|
scriptId : <scriptId>
|
|
sourceMapURL : map.js
|
|
url : foo.js
|
|
}
|
|
remove breakpoint..
|
|
{
|
|
id : <messageId>
|
|
result : {
|
|
}
|
|
}
|
|
evaluate script without sourceMappingURL..
|
|
evaluate script with sourceMappingURL..
|
|
|
|
Running test: testBlackboxing
|
|
set breakpoint and evaluate blackboxed script..
|
|
evaluate not blackboxed script..
|
|
paused with reason: instrumentation
|
|
{
|
|
scriptId : <scriptId>
|
|
url : bar.js
|
|
}
|
|
evaluate blackboxed script that contains not blackboxed one..
|
|
paused with reason: instrumentation
|
|
{
|
|
scriptId : <scriptId>
|
|
url : bar.js
|
|
}
|
|
|
|
Running test: testCompileFirstRunLater
|
|
set breakpoint for scriptWithSourceMapParsed..
|
|
compile script with sourceMappingURL..
|
|
evaluate script without sourceMappingURL..
|
|
run previously compiled script with sourceMappingURL..
|
|
paused with reason: instrumentation
|
|
{
|
|
scriptId : <scriptId>
|
|
sourceMapURL : boo.js
|
|
url : foo.js
|
|
}
|
|
|
|
Running test: testRemoveAfterCompile
|
|
set breakpoint..
|
|
compile script..
|
|
Remove instrumentation breakpoint..
|
|
evaluate script..
|
|
no breakpoint was hit
|
|
|
|
Running test: testRemoveBeforeEvaluate
|
|
set breakpoint..
|
|
Remove instrumentation breakpoint..
|
|
evaluate script..
|
|
no breakpoint was hit
|
|
|
|
Running test: testRemoveAfterOnePause
|
|
set breakpoint..
|
|
evaluate script..
|
|
paused with reason: instrumentation
|
|
{
|
|
scriptId : <scriptId>
|
|
url : foo.js
|
|
}
|
|
Remove instrumentation breakpoint..
|
|
evaluate another script..
|
|
no breakpoint was hit
|
|
|
|
Running test: testInstrumentationCoincideWithScheduledPauseOnNextStatement
|
|
set breakpoint..
|
|
set instrumentation
|
|
paused with reason: instrumentation
|
|
{
|
|
scriptId : <scriptId>
|
|
url :
|
|
}
|
|
paused with reason: instrumentation:scriptFirstStatement
|
|
{
|
|
}
|