microsoft / microsoft/vscode-python-debugger

Debugging to the end of a file causes the debug terminal to be killed

Open
#863 0 comments 0 reactions 1 assignee View on GitHub

@eleanorjboyd is already working on this.

Since Nov 4, 2025.

triage-needed
Dominant language
TypeScript
Stars
181
Forks
126
Avg merge
2d 3h
Merged PRs (30d)
3

Description

Testing #859

I'm using an Ubuntu WSL instance with pwsh as the default terminal profile.
After I debug a file in Python, I want to see the result of the run, but the debugging terminal tab is killed seconds after the debugger reaches the end of the file.

Edit: I'm unable to reproduce the issue when I switch the default terminal profile to bash.

Output shown before the tab goes away

Crash output shown before the terminal tab goes away

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.