-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After executing the code in Python using F5, the virtual environment in the terminal exits automatically #22858
Comments
I know what is prolem is, when i press the F5 shortcut,a new non-virtual terminal will be opened, the screenshot is as follow: The reason is that there is a configuration item named 'console' in the launch.json file,if i set 'integratedTerminal', it will open a new terminal,and if i change to internalConsole, it just print log in debug console tab so i think maybe it's a solution for me |
If you still face an issue with the pre-release version of the extension please provide the debug logs after executing:
Output for
|
The situation still same when i use pre-release version of python,the screenshot is as follow: look at the right of picture,the bash is virtual terminal, the second Python Debug console is new non-virtual teminal when i press F5 to run code I don't know it's a problem or just feature of vscode. Because Python usually requires installing dependencies in a virtual terminal, it is more convenient to keep the program running in a virtual terminal after execution. |
Once you get the chance please provide the logs asked earlier and we'll be happy to take a look again, also please providing the |
I set vscode log level to trace,and then reload the window, but there is nothing in output panel. The app log is ouput in a new terminal named Python Debug Console, and just like this And there is my launch.json:
|
I found it, the output panel is as follow:
|
It doesn't look like the log level is set to trace, can you please make sure follow these instructions #22858 (comment) to set the logging level first, and then provide the output? It would be great if you can "Select all" output (Ctrl + A) and then paste it here. |
Okay, Here is the trace level output:
|
Thanks for that, closing as duplicate of #22860. This seems to be an issue on VS Code's end, you can follow that issue for further updates. |
Steps to Reproduce:
The text was updated successfully, but these errors were encountered: