-
Notifications
You must be signed in to change notification settings - Fork 144
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
sourceReference should be 0 for jupyter cells #113
Comments
PTVSD working: DEBUGPY Not (on the same code, doing the same steps) |
It looks like it did the mapping back to .py correctly, but when reporting that, also provided a "sourceReference":
This causes VSCode to request the source directly instead of trying to open the file:
@fabioz, could any of the recent changes to https://github.com/microsoft/debugpy/blame/master/src/debugpy/_vendored/pydevd/pydevd_file_utils.py regressed this? |
I think it's this bit that regressed it, in 8fc238e. The actual path mapping code in file utils does map it correctly, producing debugpy/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_net_command_factory_json.py Lines 233 to 246 in 0dd33dd
|
Humm, you're right... just removing that condition will break other things, but I guess that checking if the file exists before proceeding should work... i.e.:
I'll provide a pull request with the fix tomorrow (with proper tests). |
Environment data
Actual behavior
Stepping into functions doesn't work. Opens bogus file.
Expected behavior
Stepping into functions defined in other cells would open the appropriate file with the cell.
Steps to reproduce:
I'll attach logs in a second.
The text was updated successfully, but these errors were encountered: