Skip to content
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

"Debug Cell" from a python file halts inside Lib\site-packages\IPython\core\interactiveshell.py just below # Reset our crash handler in place line 3553 #16429

Open
SteveJSteiner opened this issue Feb 7, 2025 · 1 comment
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug

Comments

@SteveJSteiner
Copy link

Environment data

  • VS Code version: 1.96.4 (user setup)
  • Jupyter Extension version (available under the Extensions sidebar): 2024.11.0
  • Python Extension version (available under the Extensions sidebar): 2025.0.0
  • OS (Windows | Mac | Linux distro) and version: Windows
  • Python and/or Anaconda version: 3.9.13
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): venv
  • Jupyter server running: Local

Steps to reproduce:

  1. Make a new test.py file with these contents:
    #%%
    1+1

  2. Click in gutter to set a bp on the 1+1 line

  3. Use the "Debug Cell" Codelens above the #%%

Expected behavior

Halt at the Breakpoint on line 2.

Actual behavior

Halts on line 3553 of interactiveshell.py
finally:
# Reset our crash handler in place
sys.excepthook = old_excepthook <--- This line

@SteveJSteiner SteveJSteiner added the bug Issue identified by VS Code Team member as probable bug label Feb 7, 2025
@ju-w
Copy link

ju-w commented Feb 12, 2025

Related #16441, #13473

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

No branches or pull requests

3 participants