Skip to content
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

Run to line in the same frame #625

Open
asmeurer opened this issue Dec 13, 2023 · 1 comment
Open

Run to line in the same frame #625

asmeurer opened this issue Dec 13, 2023 · 1 comment

Comments

@asmeurer
Copy link
Collaborator

It would be useful to have some way to run to a given line but only within the same stack frame as the currently visible one.

The reason is that when debugging a recursive function, you often end up using t to run to a line, but it runs to the line in a recursive call. From there it becomes very difficult to get back to the context where you were. For highly recursive functions, it's very difficult to effectively debug them with pudb. If you could run to a given line without stopping in recursive calls, it would make debugging easier in these cases.

It could also be useful to have this as an option for breakpoints, although that might be more complicated to implement.

@inducer
Copy link
Owner

inducer commented Dec 18, 2023

I like this idea. I feel like I've wished for that in the past. Patches welcome!

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

No branches or pull requests

2 participants