-
Notifications
You must be signed in to change notification settings - Fork 146
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
Cannot step into external programs even when "justMyCode" is set to false #817
Comments
@seishiroono |
I'm sorry that I gave a bad exmaple. Thank you for your help in advance. |
Can you specify which line are you trying to perform the step on? Looking at pyscf repo, it also has some native code in it. Note that if you want to debug the C code alongside Python, it is supported in Visual Studio proper (but not in VS for Mac or VSCode). |
@int19h Thank you for your comment. Actually, I set a breakpoint |
Cannot repro this on Debian, and pyscf doesn't seem to have prebuilt wheels for macOS/ARM. I'll get my hands on an Intel mac and give it another try. Meanwhile, if you have access to a Linux environment, can you check if it repros for you there as well? |
Thank you for your help. Actually, my laptop is also Intel Mac.
I'm sorry that I don't have a Linux environment. |
@int19h Could you reproduce the problem with your mac? |
@seishiroono can you provide the logging from running in your machine? i.e.:
|
@fabioz Sorry, I didn't get what you meant. The following things are what I have to do?
If the above is correct, I actually did not get any log file... Here is my
Also, I found that debug console in VScode said
However, as you can see, I add |
@seishiroono maybe the way you're launching is not really reading that launch.json (so, the Can you provide a screenshot (or gif) showing how you're making the launch? |
@fabioz Thank you for your message. First, I put a file named "test.py", which is the same file as the above example. Next, I performed debug, but I got the same result... What should I do? |
@fabioz Are there any mistakes? I appreciate your help. |
@fabioz Oh, I see. I used another shortcut (see upper right in the attached figure). If I use the shortcut, the debugging is fine. |
Depending on how you run you really need to configure the |
Only tangentially related, but let me post it here - in my case, I could not enter a certain function while debugging a unit test, because that function was patched to return |
@chopeen justMyCode does not work in unit test debugging, am I right? I have the same issue. |
@vpozdnyakov I am able to step into 3rd party library code while debugging unit tests with the following configuration added to
|
I agree with you. If I use Jupyter notebook and debug code segments individually, I can not step into the std library. If I put all code segments in a single python file, however, I can do it. |
VS Code version
1.63.2
Extension version
2021.12.1559732655
OS type
macOS
OS version
Monterey 12.1
Python distribution
python.org
Python version
3.9.9
Language server
None or Disabled
Expected behaviour
The debugger can step into external (or standard) packages.
In particular, when we set a breakpoint at
mol.build()
in the following example, the debugger steps into mole.py.Actual behaviour
It cannot step into external (or standard) packages, i.e., it ignores them.
However, the program works well, and I can obtain the collect result.
Steps to reproduce
My json
setting.json
Sample program
I saw other issues (e.g., microsoft/vscode-python#7347, microsoft/vscode-python#10637). However, the solution seems not to work for me.
Logs
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: