Skip to content
This repository was archived by the owner on Jan 26, 2022. It is now read-only.

Step into non-user code #263

Closed
jtpio opened this issue Dec 10, 2019 · 8 comments
Closed

Step into non-user code #263

jtpio opened this issue Dec 10, 2019 · 8 comments
Labels
backend Issues and pull requests that depend on the kernel
Milestone

Comments

@jtpio
Copy link
Member

jtpio commented Dec 10, 2019

It is possible to step into a local module just fine (#248). But stepping into non-user code such as the standard library or third-party libraries will give something like the following:

step-in-stdlib

Note that the behavior is similar in VS Code when justMyCode is set to true in the launch configuration:

step-in-stdlib-vscode

After some investigation, it seems that justMyCode is passed at launch. Also this parameter is not part of the DAP.

We should check whether we can make use of this parameter with the interactive mode.

@jtpio jtpio added the backend Issues and pull requests that depend on the kernel label Dec 10, 2019
@jtpio jtpio added this to the Future milestone Dec 10, 2019
@dbalabka
Copy link

It pretty often cases when you are required to investigate vendor library sources during a debugging session. For me, it is the most frequent use case.

@JohanMabille
Copy link
Member

Notice that in the context of Jupyter, there is no Launch request since the interpreter is always running.

@jnarula5
Copy link

jnarula5 commented Feb 2, 2021

Hi Jeremy,

Can you please point me to the code where justMyCode needs to be set to False?

Thanks,
Jaspreet

@jtpio
Copy link
Member Author

jtpio commented Feb 2, 2021

Last time we investigated this, justMyCode was not part of the DAP and it seemed like it would require a couple of changes in xeus-python and / or the debugger extension.

@hsinhungli
Copy link

hsinhungli commented Jul 29, 2021

I just started trying to use the Jupyter debugger, and run into the same issue. I feel that this is the most needed function in my application. That is, stepping into the functions that are loaded from existed modules or library stored in other folders on my computer. I wonder whether this is issue has been resolved. Based on the previous message, there is still no work around (e.g., justMyCode) for this? Is that correct?

@JohanMabille
Copy link
Member

If I remember correctly, passing this paramete was required to get PTVSD break into user code (but that is pure cargo-culting, I did nt investigate more). I can test again now that the debugger has migrated to debugpy.

@jtpio
Copy link
Member Author

jtpio commented Nov 29, 2021

Closing in favor of jupyterlab/jupyterlab#11566 and ipython/ipykernel#811

@jtpio jtpio closed this as completed Nov 29, 2021
@echarles
Copy link
Member

Thx @jtpio for the backlink. This discussion is interesting.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backend Issues and pull requests that depend on the kernel
Projects
None yet
Development

No branches or pull requests

6 participants