I run a python console in PyCharm and attach the debugger to it by clicking on the green debugger button in the left pane of the console window.
Debugging this way works great!
But there seems not to be an option to detach the debugger from the console. When I change the code or stop the debugger by mistake I am not able to reattach it because the debugger button on the left pane is still pressed :(
Therefore I have to run a new python console, redoing all the stuff done before (importing modules, scripts etc.), attaching the debugger.
It would be nice to have an option to detach the debugger from a python console, change some code and reattach it.
Does anyone have any ideas on this issue?
Thanks in advance. Sascha
Yes, it is possible with some implications and somehow cumbersome user experience IMHO.
Once you initiated a debug session from the Python console in PyCharm you can detach the debugger from the debugger window but you won’t see the debugger window nor be able to focus it even using Alt+5 unless you hit some breakpoint that you have to somehow set.
Once you reach a breakpoint, and the debugger takes control, you can press the red × on the left panel of the debugger window.
Then you will be asked:
You can press the Disconnect
button that will detach and terminate the debugger but the debugger button in your original console will remain pressed until you restart that console.
You’re welcome to request a feature for PyCharm and I will surely give it my vote.