interactive shell debugging with pycharm

前端 未结 9 1292
灰色年华
灰色年华 2020-11-30 18:49

I am new to PyCharm. I have been using IDLE for a long time.

It is very convenient to use Python objects after script execution in IDLE. Is there any way to use scr

9条回答
  •  长情又很酷
    2020-11-30 19:10

    Leave command line open after executing

    For anyone still having this problem: Go to the Run/Debug menu, choose Edit Configuration, check the box 'Show command line' this will enable you to enter parameters in the console at the >>> prompt and test your function.

    Global configuration

    To make this change apply to all your .py files (as this check box only applies to the current file you're working on) go to: Edit configuration, in the pop up you will see a menu tree on the left, select Defaults, then Python, then check the 'Show command line' box, this will make it the default setting whenever you open a .py file, (this feature should really be on by default!)

提交回复
热议问题