简体   繁体   中英

VSCode Python write to Debug Console

I am brand new to VSCode with Python. Is it possible to write to the tab DEBUG CONSOLE (only) from Python code? I have Googled but found nothing on this.

The debugger does this internally, eg on a breakpoint set to Log Message . For the moment, if I use print() that does go to DEBUG CONSOLE , but it also goes to TERMINAL tab, which I'd rather it did not. The launch.json has "console": "integratedTerminal" if that is relevant.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM