How do I suppress the console window when debugging python code in Python Tools for Visual Studio (PTVS)? -


in ptvs default behavior program print python console window , visual studio debug output window.

realizing won't able accept user input, how suppress python console window?

this more difficult figure out expected, usual, simple once know.

the quick answer.
in solution explorer, right click on project , select properties. on general tab check box next windows application.

windows application checkbox

then save , close properties window. done!


other details discussion of issue posted in 2012 on ptvs codeplex site.
python shell appears in addition output window of ide

the typical way hide python console window set windows application property (in project properties window), run pythonw.exe instead of python.exe. option if don't provide input while program running - output window in vs not console , not support typing program. also, option per-project, you'll have set each project. (it seems not working in our latest builds, we'll fix asap...)

the other option stop printing output in visual studio , use console window. if suffering performance issues, more solve problem. this, open tools->options->python tools->advanced , deselect "tee program output debug output window". want select "wait input when process exits normally" while here. output go python console (you can right-click title bar , choose properties make bigger), faster.


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -