Search code examples
pythonvisual-studioptvs

Debug with internal command window Python Tools and Vistual Studio 2013


I just installed Python Tools with Visual Studio 2013 (Shell) and whenever I run a debug of the program, a separate window pops up for the interpreter:

enter image description here

I can however run the program using the internal interactive console:

enter image description here

However this doesn't seem to stop at any breakpoints that I set in the code. Is there a way to force the system to use the internal console for debugging instead of using a separate windowed console?


Solution

  • You can hide the shell by changing Environment options in Python Tools with Visual Studio, change the default path to point pythonw.exe.

    Here is the steps:

    1. TOOLS -> Python tools -> Python Environment
    2. Open Environment options, Add Environment, Enter whatever you want to name it.
    3. Copy all the options in the default Environment except change "Path:" to path of pythonw.exe. Hit OK and made the new Environment as the default environment.

    Python Environment