Skip to content

Commit ed02dd9

Browse files
authored
[DI] Add debug logs when starting/stopping the CDP session (#5694)
Before the first probe is added, the Chrome DevTools Protocol (CDP) sesion is started and after the last probe has been deleted/deactivated, the CDP session is stopped. When these events happen, log a debug message.
1 parent 6e4b464 commit ed02dd9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/dd-trace/src/debugger/devtools_client/breakpoints.js

+2
Original file line numberDiff line numberDiff line change
@@ -175,11 +175,13 @@ async function updateBreakpoint (breakpoint, probe) {
175175

176176
function start () {
177177
sessionStarted = true
178+
log.debug('[debugger:devtools_client] Starting debugger')
178179
return session.post('Debugger.enable')
179180
}
180181

181182
function stop () {
182183
sessionStarted = false
184+
log.debug('[debugger:devtools_client] Stopping debugger')
183185
return session.post('Debugger.disable')
184186
}
185187

0 commit comments

Comments
 (0)