Reading input during debugging in Python with VSCode

后端 未结 7 2080
执笔经年
执笔经年 2020-12-05 07:53

Here is the extension for python I used in the vs code: python extension.

When I use the debugging feature provided by the extension, it will hang in there and do no

7条回答
  •  粉色の甜心
    2020-12-05 08:24

    The console option could have any of these values: internalConsole, integratedTerminal, externalTerminal.

    Normally if you start the debugger and the program stops, it leaves the external terminal displaying a prompt Press Enter to continue . . . to have access to any output of the program. If you accidentally have a syntax error the external terminal just closes not leaving any message.

    When using the integratedTerminal option, the terminal stays there and displays the error message.

    While I do not know if this externalTerminal thing is a bug or not, the integratedTerminal option seems to work much better in this case.

提交回复
热议问题