【发布时间】:2019-08-06 08:55:19
【问题描述】:
当PyCharm IDE 需要控制台输入时,如何调试代码?比如我有一段代码,
# if the config already exists prompt what to do
if pc and not self.prompt.ask_yesno('project_ovverride'):
self.prompt.say('setup_abort')
return
这在突出显示的行中中断,我无法继续,因为无法提供控制台输入。目前,我将其注释掉,但是,可能还有一种方法可以提供所需的控制台输入。
谢谢。
【问题讨论】: