posit-dev / posit-dev/positron
Python: Cannot exit `ipdb` `interact` mode
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 4.3k
- Forks
- 184
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 195
Description
System details:
Positron and OS details:
Positron Version: 2025.07.0 build 999
Code - OSS Version: 1.100.3
Commit: 5d0a419a120cd6f951d3656a7e02d3ff15c75007
Date: 2025-06-28T11:01:41.371Z
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.5.0
Session details:
Python 3.12.5.
Describe the issue:
I can't exit interactive mode in an ipdb debug session.
Steps to reproduce the issue:
- Run
%debugin the console. - Run
interactin theipdbactivity prompt. - Try to exit with Ctrl+D, Ctrl+C,
exit(),quit(), none of which work. Only force quitting works.
Expected or desired behavior:
In IPython, in interact mode:
- Ctrl+D once shows an exit confirmation message (related to https://github.com/posit-dev/positron/issues/2073), and Ctrl+D a second time exits to the
ipdbprompt. - Ctrl+C does nothing in
ipdborinteract. exit,exit(),quit, andquit()all exit to theipdbprompt.
Were there any error messages in the UI, Output panel, or Developer Tools console?
No.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue by running %debug, entering interact at the ipdb activity prompt, and trying Ctrl+D, Ctrl+C, exit(), and quit(). Compare the behavior with the expected IPython interaction described in the issue, including the two-step Ctrl+D confirmation. Done means each exit command reaches the ipdb prompt without force quitting.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- developer-experience, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100