v8/test/inspector/debugger/set-breakpoint-on-function-call-expected.txt
Alexey Kozyatinskiy f2b5a6da4e [inspector] added Debugger.setBreakpointOnFunctionCall
This function can be used to set breakpoint on any function call,
including native functions without source code, for them new method is
only one way to set breakpoint.

R=dgozman@chromium.org

Bug: chromium:828076
Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel
Change-Id: Iae8f4805b6e860a7ca008041fdfbe75e43a1959c
Reviewed-on: https://chromium-review.googlesource.com/1023128
Commit-Queue: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org>
Reviewed-by: Dmitry Gozman <dgozman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#52745}
2018-04-23 20:36:47 +00:00

37 lines
751 B
Plaintext

Tests Debugger.setBreakpointOnFunctionCall.
set breakpoint on function call
call function
paused
hitBreakpoints contains id: true
remove breakpoint
{
id : <messageId>
result : {
}
}
call function again
evaluate finished without pause
set breakpoint on function call
set breakpoint on same function call
{
error : {
code : -32000
message : Breakpoint at specified location already exists.
}
id : <messageId>
}
set breakpoint on function call with condition
call function, condition is false
evaluate finished without pause
call function, condition is true
paused
hitBreakpoints contains id: true
remove breakpoint
{
id : <messageId>
result : {
}
}
call function again
evaluate finished without pause