Thanks to visit codestin.com
Credit goes to github.com

Skip to content

justMyCode does not work #678

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

Open
jjhelperin opened this issue Mar 27, 2025 · 7 comments
Open

justMyCode does not work #678

jjhelperin opened this issue Mar 27, 2025 · 7 comments
Assignees
Labels
info-needed Issue requires more information from poster triage-needed Needs assignment to the proper sub-team

Comments

@jjhelperin
Copy link

As a developer, I'd like the ability to debug internal files that my code uses.

According to the documentation, disabling "justMyCode" will "enable debugging of standard library functions."

Unfortunately, this is not the case, as you can see in the gif below. When disabling "justMyCode", I'm unable to debug internal files, even if I step into them or I create a breakpoint within the internal files themselves.

Therefore, the ask is that you fix the feature that enables debugging internal files such that I can step into them when running the Python debugger.

Image

@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Mar 27, 2025
@eleanorjboyd
Copy link
Member

Hi, sorry but from the gif I see that it enters runpy.py but you are saying this is not the expected behavior? Could you clarify what you think should happen? What code are you expecting to step into?

@eleanorjboyd eleanorjboyd self-assigned this Mar 31, 2025
@eleanorjboyd eleanorjboyd added the info-needed Issue requires more information from poster label Mar 31, 2025
@jjhelperin
Copy link
Author

The expected behavior is that when I step into the heapify function, my debugger should go into the heapq.py file (the page in the middle of the screen) and go to the first line of the heapify function, where my second breakpoint is.

In addition, because I have a breakpoint in the heapify function that my code uses, stepping over the heapify(l) in my test2.py file should also make it so that the code execution stops at the breakpoint that I have in the heapify function.

The fact that the runpy.py gets opened at the end of the execution of my test2.py file is a result of enabling justMyCode, although it's unwanted.

@eleanorjboyd
Copy link
Member

gotcha, sorry missed that. What python version are you using? If you are using 3.12 could you try a different version as it might be related to this: microsoft/debugpy#1887

@ollie-bell
Copy link

This doesn't seem directly related to microsoft/debugpy#1887 - I can reproduce the issue described here on any Python version, not just 3.12+

@Tobiaqs
Copy link

Tobiaqs commented Apr 15, 2025

I have the same issue in a large Django project. I can debug files from my virtual env, but only by first setting a breakpoint in my own code, then stepping into an external function call.

@jjhelperin
Copy link
Author

@eleanorjboyd

Apologies for the delay. (Work has got me busy.)

Even if I downgrade my Python interpreter to version 3.9.6 from 3.12.9 (as it was in the gif), the same result happens.

Copy link

Hey @eleanorjboyd, this issue might need further attention.

@jjhelperin, you can help us out by closing this issue if the problem no longer exists, or adding more information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
info-needed Issue requires more information from poster triage-needed Needs assignment to the proper sub-team
Projects
None yet
Development

No branches or pull requests

4 participants