question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

IW debugger always breaks in site-packages/IPython/core/interactiveshell.py

See original GitHub issue

Clicking 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

Screen Shot 2022-04-28 at 09 47 39

Screen Shot 2022-04-28 at 09 52 15

(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:closed
  • Created a year ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
IanMatthewHuffcommented, Apr 28, 2022

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.

1reaction
janoshcommented, Apr 29, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found