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

Customizable breakpoint file location #563

Open
cgbahk opened this issue Oct 7, 2022 · 4 comments
Open

Customizable breakpoint file location #563

cgbahk opened this issue Oct 7, 2022 · 4 comments

Comments

@cgbahk
Copy link

cgbahk commented Oct 7, 2022

First, love to use pudb daily, thanks ❤️

Issue

Currently, breakpoint is saved globally, usually in ~/.config/pudb/saved-breakpoints-3.X.

But in most use cases, breakpoints are natual to be set by project.

  • Breakpoint set for project A means nothing for project B, and vice versa

So while debugging for several projects, the breakpoint file is getting bigger and bigger. This is not scalable nor ideal.

Suggest

It might be wonderful if there's way to set breakpoint by session. There are plenty of options I can imagine.

pudb cli option to get breakpoint file from user

pudb --breakpoint ./my_breakpoint.txt ...

I see #539 suggested to do this for configuration. This suggestion is breakpoint version of #539.
I think configuration is mostly global, while breakpoint is natively per project. So getting local breakpoint file from user seems natual.

Convention for project-wise breakpoint file location to override global setting

Like .pudb_saved_breakpoint in project root overrides global breakpoint file, if exists.

pudb cli option to take breakpoint at runtime (#500)

#500 might be one option (but I prefer getting file as argument)

@inducer
Copy link
Owner

inducer commented Oct 7, 2022

I can see the utility in that. I'd be happy to consider a PR to this effect.

@mvanderkamp
Copy link
Contributor

This would be useful for my vim plugin as well!

@mezhaka
Copy link

mezhaka commented Jan 23, 2023

@inducer Is there currently a way to actually save the breakpoints that are set in a running session?

@inducer
Copy link
Owner

inducer commented Jan 24, 2023

The current set of breakpoints should be saved on exit.

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

4 participants