How can I send code from the editor in IDEA (PyCharm) to the DeBug Console to run?
To run certain Python statements interactively while in DeBug, PyCharm provides the DeBug Console. (Alt + F8 is OK in simple cases, but the experience is not as good as the console)
There are times in VSCode when you can just use 'Terminal: Run Selected Text In Active Terminal' to put the text from the editor directly on the console, but I didn't find a similar mechanism in Actions in PyCharm.
I've seen the documentation that says 'Load source code from the editor into console.' but I can't find the relevant action
Is there a similar mechanism in PyCharm?
Please sign in to leave a comment.
Hello,
Please check this option:
Execute selection in console https://www.jetbrains.com/help/pycharm/interactive-console.html#load-code
Antonina Belianskaya thanks