2

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.

8
  • 1
    Does this answer your question? PyCharm running Python file always opens a new console
    – bad_coder
    Commented 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. Commented Nov 2, 2021 at 3:00
  • In that case try this one attaching the debugger
    – bad_coder
    Commented 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? Commented 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. Commented Nov 2, 2021 at 3:31

2 Answers 2

3
+50

Using PyCharm 2022.3.2 (Community Edition), When you debug in pycharm, there are two tabs at the bottom left: "debugger" and "console". The "console" tab does exactly what you want Screen shot of the bottom left corner of my screen showing myself messing around with my data

3

From this previous answer of mine

You might be missing the Show Python Prompt button

enter image description here

In order to have the prompt automatically appear, go to Preferences>Build, Execution, Deployment>Console> check Always show debug console

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.