Skip to content

Commit

Permalink
Check whether debugger is running before trying to read a message hea…
Browse files Browse the repository at this point in the history
…der (#16368)
  • Loading branch information
afshin committed May 24, 2024
1 parent fb2aff9 commit 144a5e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/debugger/src/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,10 @@ export class DebuggerHandler implements DebuggerHandler.IHandler {
msg: KernelMessage.IIOPubMessage
): void => {
if (
(msg.parent_header as KernelMessage.IHeader).msg_type ==
'execute_request' &&
this._service.isStarted &&
!this._service.hasStoppedThreads()
!this._service.hasStoppedThreads() &&
(msg.parent_header as KernelMessage.IHeader).msg_type ===
'execute_request'
) {
void this._service.displayDefinedVariables();
}
Expand Down

0 comments on commit 144a5e8

Please sign in to comment.