Closed
Description
Description
When establishing a new websocket connection to a kernel whose execution is paused due to debugging (e.g. paused on a breakpoint), messages sent over the websocket get no reply -- including debug requests.
Reproduce
- Connect to a kernel that supports debugging (e.g. IPyKernel >= 6)
- Set a breakpoint in the kernel (e.g. using JupyterLab) and run the code so that execution is paused
- Open a new websocket connection to the kernel
- Notice that the websocket gets no responses, even from messages over the
control
channel.
Seems to be causing jupyterlab/jupyterlab#10174.
Tested against different versions of jupyter_server
and traced the issue back to version 1.1.2 (the issue does not repro in 1.1.1). This correlates with #361. While in this "frozen" state the console also shows that the server is nudging the kernel repeatedly, so it makes sense if this is the cause.
Expected behavior
The kernel should still be able to communicate, at least over the control
channel so that frontends can continue the debugger and unblock the shell.