We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab937ac commit 3f44244Copy full SHA for 3f44244
test/support/protocol_test_case.rb
@@ -175,12 +175,16 @@ def req_step_back
175
end
176
177
def req_terminate_debuggee
178
+ # Kernel#exit method will be called when the debuggee receives the following method.
179
case get_target_ui
180
when 'vscode'
181
send_dap_request 'terminate'
182
when 'chrome'
183
send_cdp_request 'Runtime.terminateExecution'
184
185
+ # Ensure debuggee exit by waiting for Kernel#exit in server_cdp.rb to complete.
186
+ # This `wait_pid` is called to prevent disconnection before the debuggee exits.
187
+ flunk create_protocol_msg test_info, "Expected the debuggee program to finish" unless wait_pid @remote_info.pid, 3
188
189
close_reader
190
0 commit comments