Skip to content

Breaking in StdLib while not stepping into #854

@echarles

Description

@echarles

JupyterLab 3.3.0a3 has a kernel sources panel which displays the loaded py files loaded (so the core python libraries, and userland libraries). This aims to offer the user the ability to add breakpoints and debug to see what happens in those userland libraries.

#812 has added the needed option to be able break into those stdlib files, while #839 has removed it. The removal is due to #832 where the step was going to the line in the call stack. Interesting to note, today the side effect describe in jupyterlab/jupyterlab#11566 (comment) (breaking in selector.py) has disappeared.

Thinking a bit more, the behavior is expected. When we say to debugpy to break into all files, we also say to step into all files, meaning that the taken step goes to the next in the call stack, including the StdLib files.

@JohanMabille You say on #832 (comment) that you would think to a solution ...changing the step over behavior, or filter stop events. Is there anything we can do in the short therm?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions