Skip to content Skip to sidebar Skip to footer

Python File Closes Instantly In Ms Visual Studio 2015

I am trying to run this file in MS visual studio 2015: # This program says hello and asks for my name. print('Hello friend!') print('What is your name?') # ask for their name myNam

Solution 1:

Under the "Tools", "Options" dialog, find "Python Tools" and the "Debugging" page. On that page, you can configure whether the console closes automatically or waits for a keypress for both cases where it successfully completes and when it fails (based on the exit code).

By default, on successful completion, the console will close automatically. If an error terminates the program, it will prompt by default.

For IronPython projects, the default debugger is the .NET one, which does not respect these options. In "Project Properties", "Debug" you can switch to Standard Python Debugging, which generally is a better experience (though you can no longer step into C# code).

Post a Comment for "Python File Closes Instantly In Ms Visual Studio 2015"