-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
Introduces more interactive command for PDB #126785
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
Comments
So first of all, this is a dup of #110953. The reason why we don't have
This is why I'm trying to push the At this time, I don't believe it's feasible to just add |
I see... Thank you for your quick response! I do understand your points about that it may break some test and 3rd party debuggers, but I'm curious about how I also saw your PR about configuring the customizable behavior of |
This is the reality when you are working with a programming language with millions of users. We care a lot about backward compatibilities. It's impossible to keep track of all third party apps, but it is a fact that when we change something, there could be apps out there that break. We are trying to be very careful when we change the existing APIs, that's why we have a deprecation process for any API that we change or remove. Unfortunately, flexibility is not the luxury we have when we deal with a project like CPython. We can't say "Oh I did not see anything break, let's do it". We think all 3rd party libraries/apps out there "important". It's not saying that we will never change anything, it's just we need a really good justification. That being said, I believe there are 3rd party debuggers in the market that actually support this feature. They also have a much better flexibility to change the interface as they like. Another possibility is to try their debugger and see if it solves your issue. I will have this in mind and see if I can make any progress on the matter. |
Thank you for your insights! I will try some other 3rd party debugger later! |
Just come across this. To @gaogaotiantian : does the following sound reasonable?
|
Hi @user202729 ! IIUC, you means we dont modify the output for default @gaogaotiantian , WDYT? If this approach makes sense, I could update my PR to achieve this. |
Feature or enhancement
Proposal:
Hi Guys!
In the current pdb interactive command list, there is only
up
anddown
command for switching the frame, but it's really inflexibility when we meet a very depth stack, we may have to count how many number of stack we would like toup
ordown
Under such a background, I proposed here to introduce a new command like
frame
(just like what it did inGDB
) to switch the current frame with the frame index came from thebt
command.A case like:
We could see some workflow like:
Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Links to previous discussion of this feature:
No response
Linked PRs
The text was updated successfully, but these errors were encountered: