spyder-kernels
spyder-kernels copied to clipboard
[WIP] PR: Connect console and ipdb kernels
Given that I couldn't find a way to use a Pdb instance from the console kernel to start an IPdb one, we have to switch to a different approach:
- Start the IPdb kernel from the console kernel and pass the connection info of the second one to the first one, once the user wants to start a debugging session, or with
settrace
andpost_mortem
. - Connect the IPdb kernel to the console by using a kernel client that loads the connection info passed in step 1.
- Use a Pdb proxy to interact with the Pdb instance present in the console kernel. This proxy sends Pdb commands written by the user in the IPdb kernel through the kernel client created in step 2.