[PyCharm]: detach debugger from cosole

Viewed 1441

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

2 Answers

Anyone wondering how to do this in new incarnations of PyCharm (mine is version 2021.3.2) can find it by clicking the little 'x' button on the tab created for the attached process, which will bring up the 'Terminate/Disconnect/Cancel' popup as from the above answer:

enter image description here

Related