Output window

Nov 21, 2013 at 7:01 AM
How can I set the output of program to come in a internal window like output in VS instead of opening a CMD?
(like Eclipse)
Coordinator
Nov 21, 2013 at 3:54 PM
I don't think you can avoid having the cmd.exe window open entirely, but you will also see all program output in the Python Debug Interactive tool window if you have it open.
Nov 5, 2014 at 11:13 PM
Edited Nov 5, 2014 at 11:13 PM
Just started using Python Tools for the first time, and this was my immediate question too.
Seems such a pity to have such an effective addition to VS, but when running a console python script, one has to endure a CMD poping up.

A least I can make the window bigger with;-

import os
os.system('mode con lines=30')
os.system('mode con cols=120')
print('Hello World')

but I wish it was more like PyCharm v4
OK, I can execute in the Interactive window, but I can't debug there.
And my output is Tee'd into the Debug window, but....

Has anything changed for the latest version, 2.1?

Can the execution of CMD be trapped, and someone clever write an add-on?
Coordinator
Nov 6, 2014 at 12:33 AM
You can actually debug the code that you run in Python Interactive - have a look at the $attach command.