I just wanted to know if there is a way in PyCharm to use the debug console as an "all-rounder". I.e. try out commands, create variables and debug Python scripts so that the debug console still remains interactive. Spyder has exactly this feature and I have been looking for this in PyCharm for a long time.
-
1Does this answer your question? PyCharm running Python file always opens a new console– bad_coderCommented Nov 1, 2021 at 21:54
-
This link is very similar to my question but I am still trying to figure out how to debug code with the current python console and have it still interactive. This is not answered in this linked question. I dont want to use the debug console. I want to use the console in which I try all my commands.– a-python-scriptCommented Nov 2, 2021 at 3:00
-
In that case try this one attaching the debugger– bad_coderCommented Nov 2, 2021 at 3:14
-
I probably looked already through all the hints in stackoverflow. And this one too and it is not what I want. I am wondering how Spyder manages it to have this nice feature and PyCharm doesnt?– a-python-scriptCommented Nov 2, 2021 at 3:31
-
If there was a way to connect the python console to the debug console (expose variables, etc from the debug console to the python console), this would be great.– a-python-scriptCommented Nov 2, 2021 at 3:31
|
Show 3 more comments
2 Answers
From this previous answer of mine
You might be missing the Show Python Prompt
button
In order to have the prompt automatically appear, go to Preferences
>Build, Execution, Deployment
>Console
> check Always show debug console