IW debugger always breaks in site-packages/IPython/core/interactiveshell.py
See original GitHub issueClicking the code cell debug button always breaks on this line in ~/.venv/py310/lib/python3.10/site-packages/IPython/core/interactiveshell.py
:
finally:
# Reset our crash handler in place
sys.excepthook = old_excepthook
(regardless of “Uncaught Exceptions” being checked or unchecked). This has been previously mentioned in https://github.com/microsoft/vscode-jupyter/issues/6560#issuecomment-875186707 and with 10 upvotes on SO suggesting the problem is not unique to me https://stackoverflow.com/q/46495269.
Issue Analytics
- State:
- Created a year ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Debugger always breaks into handled exceptions in remote ...
Python itself provides no way for the debugger to know whether it's dealing with an exception that's unhandled or another which is handled....
Read more >Debugger Not Stopping at Breakpoints in VS Code for Python
Every time I try to use the debugger, it just skips over any breakpoints that I have set and runs the program like...
Read more >Debugging configurations for Python apps in Visual Studio Code
This article mainly addresses Python-specific debugging configurations, including the necessary steps for specific app types and remote debugging.
Read more >pdb — The Python Debugger — Python 3.11.1 documentation
It supports setting (conditional) breakpoints and single stepping at the source line level, inspection of stack frames, source code listing, and evaluation of ......
Read more >Troubleshoot Breakpoints in the Visual Studio Debugger
If you're debugging optimized code, make sure the function where your breakpoint is set isn't being inlined into another function. The Debugger.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hmm, any chance you have turned off our Jupyter -> Debug Just My Code setting? I think that it usually breaks there if that setting is unchecked.
Yes, that’s it! I don’t use it that often but sometimes it’s nice to be able to look e.g. at the shape and values of tensors in Pytorch. I guess I can just add
"jupyter.debugJustMyCode": false
for those debug sessions and drop it otherwise.