新手,刚接触vscode不久,写了个flask hello代码,在代码里写了print,logging,调试信息,
跑起来后,发现在终端,调试控制台,没有任何输出,我就纳闷了,怎么这么不好使,

百度,google,原来还要在launch.json里设置的。一看我的项目,居然没有launch.json,好吧,要添加的!



然后,在终端就可以看到输出了,

希望对你有帮助!!!哈哈!!!
新手,刚接触vscode不久,写了个flask hello代码,在代码里写了print,logging,调试信息,
跑起来后,发现在终端,调试控制台,没有任何输出,我就纳闷了,怎么这么不好使,
百度,google,原来还要在launch.json里设置的。一看我的项目,居然没有launch.json,好吧,要添加的!
然后,在终端就可以看到输出了,
希望对你有帮助!!!哈哈!!!
本文标题:vscode python调试信息输出到终端里去
本文链接:https://www.haomeiwen.com/subject/ygxvaxtx.html
网友评论