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

Step into installed library code #576

Closed
jnarula5 opened this issue Feb 2, 2021 · 5 comments
Closed

Step into installed library code #576

jnarula5 opened this issue Feb 2, 2021 · 5 comments
Milestone

Comments

@jnarula5
Copy link

jnarula5 commented Feb 2, 2021

Hi,

I tried the xpython debugger functionality to step into breakpoint from a function call in notebook to function definition in .py file.
This worked when the .py file was in the same folder as the notebook but did not work when the python code was installed as a library.

Can you please guide on how to do this?

Thanks,
JN

@jtpio
Copy link
Member

jtpio commented Feb 2, 2021

Thanks @jnarula5 for reporting.

It sounds similar to this issue? #263

Or is your use case slightly different?

@jnarula5
Copy link
Author

jnarula5 commented Feb 2, 2021

It is very similar.

Does it make a difference if I have the code for some libraries checked out into a folder in addition to having it installed (py files under site-packages)? Is it possible to point the debugger to use source code from folders rather than going to site-packages?

Thanks,
Jaspreet

@jtpio
Copy link
Member

jtpio commented Feb 2, 2021

Does it make a difference if I have the code for some libraries checked out into a folder in addition to having it installed (py files under site-packages)?

Yes, this is for example what is mentioned in this comment: #263 (comment)

Both VS Code and xeus-python use the same backend for debugging (debugpy). In VS Code users must specify justMyCode: false to step in library code. We would need to have something similar expose to the user of the debugger frontend, so that it can be passed to xeus-python.

@jtpio
Copy link
Member

jtpio commented Feb 2, 2021

Let's close this issue and move the conversation to #263 so it's all in one place (feel free to comment there too).

@jtpio jtpio closed this as completed Feb 2, 2021
@jtpio jtpio added this to the Reference milestone Feb 2, 2021
@jnarula5
Copy link
Author

jnarula5 commented Feb 2, 2021

Hi Jeremy,

Thank for your prompt responses. Can you please point me to the code where this variable needs to be set?

Thanks,
Jaspreet

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants