Breakpoints set in installed python files get grayed out when running a jupyter cell #13394
Unanswered
rbavery
asked this question in
Questions and Answers
Replies: 2 comments
-
@roblourens - is this expected to work? |
Beta Was this translation helpful? Give feedback.
0 replies
-
The launch.json is not used for jupyter debugging. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to debug a python file that's installed by mambaforge by setting a breakpoint in a jupyter cell.
I feel like I'm doing all the right things, justmycode for jupyter is false in my launch.json
and I can set breakpoints in my own python module that is installed editable with pip
but when I run "Debug Cell" after setting the breakpoint in the file "/home/work/mambaforge/envs/slickformer/lib/python3.10/site-packages/transformers/feature_extraction_utils.py" the breakpoint gets grayed out. And it looks like the kernel is actually running a tmp file.
How are folks debugging code in system libraries from jupyter cells? Is there a configuration I'm missing? Or is this not possible?
Another potential wrinkle is that I'm running this in a DevContainer. But since I'm able to set breakpoints in my notebook file and editable python module, it feels like debugging installed python libraries is within reach?
After writing this I found this issue: #12826 which indicates maybe the folder path for my mambaforge installation and project directory needs to be the same? Is this still the case or has this been addressed?
Beta Was this translation helpful? Give feedback.
All reactions