-
Notifications
You must be signed in to change notification settings - Fork 297
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
Issues with ipykernel debugging in the Interactive Window #12407
Comments
Since we have all these issues with mapping lines and cell paths, I was looking into using @int19h - Should |
One thing I'm trying to understand is, what's the difference between using paths that look like |
I have this API working now, but I'm still not sure whether I will use it or keep the manual remapping in the extension code. One more question @int19h, I would like to use I notice that if I just prepend a |
I wasn't involved in any of the debugger work, hence my knowledge is limited to what I've learnt from my own research. Based on what I recall, ipython/ipykernel (can't remember what module) will end up creating a file on disk with the contents of the cell and use that for debugging. |
Relying on |
Thanks @int19h, another question- I think I am sending a correct sourcemap request, and it looks like I see the breakpoint path remapped, however the breakpoint is never actually hit. I thought this was working earlier, now it isn't, I might have just been confused by hitting a I run a cell which looks like
which has a breakpoint() inserted like
Here's an excerpt from the pydevd log
|
Looked at the logs for notebook debugging, where we have a similar flow but no pydevd sourcemap, and noticed this
This is the tmp directory on mac, which is symlinked from Could work around it if we could have ipykernel (?) only use canonical paths, but I don't think we can have control over that. I'd still like to use this API if this can be fixed in pydevd/debugpy, but unless there is a workaround, we will have to fix all this mapping code in the extension for this issue. |
Don suggested that we can still control this path using |
There are some issues with ipykernel debugging (using
"jupyter.forceIPyKernelDebugger": true
or on a remote jupyter server) in the Interactive Window that need to be fixed as prereqs to #11777. I'll make this list more specific when I get back into itThe text was updated successfully, but these errors were encountered: