-
-
Notifications
You must be signed in to change notification settings - Fork 383
breakpoint()
not working
#897
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
Comments
Hi! I have Jupiter Notebook version 6.4.11. In my case I can't run breakpoint on my notebook. |
Can confirm it's still broken.
|
Any updates on this? The only way I found that works is
(ipython 7.34.0; jupyterlab 3.2.0) It worked fine before, so I hope this is just a bug/regression, not a deliberate decision? |
This is caused by debugpy. If you run
you will see that it steps into debugpy code. If you step a few more times you'll see that it eventually hits the line
and so You can work-around this issue by running @JohanMabille you added the ipykernel debugpy integration; do you know what needs to be done to get |
This was very puzzling indeed, although difficult to say if it's a feature or a bug... If |
Sorry for the late reply, I missed your ping @kerrickstaley ! I think you can execute the following code in a notebook cell to start debugpy: import debugpy
debugpy.listen(("localhost", 5678)) # or debugpy.listen(5678) Not 100% sure (this is a bit far to be honest), but this should be enough to setup breakpoints |
I think there's a bug here that should be fixed. When you install [1] Which in my case I didn't do deliberately; I think it was a dependency of something else I installed. |
Not sure where this statement comes from. |
Any update on this issue? It's been 4 years. |
It's been 4.5 years now. :) |
Using a fresh install of Jupyter Lab my usual
breakpoint()
to invoke the debugger in a Notebook is skipped (see screenshot). Usingimport pdb; pdb.set_trace()
instead invokespdb
as expected.I was expecting (am I wrong?) that a call to
breakpoint()
in a cell would invokepdb
.This is using a fresh conda install of Jupyter Lab this morning, no reconfiguration of the environment has occurred.
Description
Reproduce
I've created a fresh minimal environment:
and then I run
jupyter lab
and try to callbreakpoint()
as noted in the screenshot above.I used
jupyter lab --debug
and scanned the output, nothing looked amiss (but there's a lot and I'm not sure what to look for) - I can attach a copy if needed?I noticed this originally in a second more complex environment (also built today, making me think this is a library update issue somewhere) and I made the above simple environment to try to narrow things down, but the issue remains.
Environment
Linux Cinnamon using Anaconda with Firefox, the OS is all up to date.
The text was updated successfully, but these errors were encountered: