From 6f79d2ab2a9d4886ae908dd33a59517ac4873c75 Mon Sep 17 00:00:00 2001 From: Naoto Ono Date: Tue, 7 Mar 2023 23:50:09 +0900 Subject: [PATCH] CDP: support reattaching in Chrome DevTools Close #800 --- lib/debug/server_cdp.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/debug/server_cdp.rb b/lib/debug/server_cdp.rb index 66843e4ca..e3f0bb4f4 100644 --- a/lib/debug/server_cdp.rb +++ b/lib/debug/server_cdp.rb @@ -549,6 +549,9 @@ def process activate_bp bps end send_response req + when 'Debugger.pause' + send_response req + Process.kill(UI_ServerBase::TRAP_SIGNAL, Process.pid) # breakpoint when 'Debugger.getPossibleBreakpoints'