mirror of
https://github.com/nodejs/node.git
synced 2025-05-21 06:53:52 +00:00

PR-URL: https://github.com/nodejs/node/pull/21079 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Yang Guo <yangguo@chromium.org>
37 lines
751 B
Plaintext
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
|