JonBrave
JonBrave

Reputation: 4280

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, e.g. 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.

Upvotes: 6

Views: 13448

Answers (1)

Related Questions