You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Pdb can't use the commands through -c or .pdbrc files #90095
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=Nonecreated_at=<Date2021-11-30.03:36:50.577>labels= ['3.8', 'library']
title="Pdb can't use the commands through -c or .pdbrc files"updated_at=<Date2021-11-30.03:36:50.577>user='https://github.com/Zrincet'
Would I be able to get some clarification if this is even supposed to be possible? I myself had a desire to do this and have performed the necessary setup to make an attempt at making this possible but given the long standing stack overflow post about this, I'm not sure if this is even a bug or not.
Okay I'll do a PR to keep the consistency of the behavior and update the docs (in a way that can be applied to 3.12 and 3.11 as well because no behavior is changed).
Okay we restored the behavior for 3.12 and 3.11, and we also updated the docs to clarify the behavior of .pdbrc. I'll close this. Let us know if there are more stuff to do for the matter.
Activity
Zrincet commentedon Nov 30, 2021
I have a python file:
I run this command:
python -m pdb -c "b 5" -c "commands 1;;do_something();;end" -c "c" main.py
It doesn't work.
And I have a .pdbrc file
b 5
commands 1
do_something()
end
c
It doesn't work either.
Delengowski commentedon Mar 3, 2023
Would I be able to get some clarification if this is even supposed to be possible? I myself had a desire to do this and have performed the necessary setup to make an attempt at making this possible but given the long standing stack overflow post about this, I'm not sure if this is even a bug or not.
https://stackoverflow.com/questions/2013698/commands-for-breakpoints-in-a-pdbrc-file
gh-90095: Make .pdbrc work properly and add some reasonable tests (#1…
gaogaotiantian commentedon Mar 11, 2024
This is fixed now, you can define any commands/aliases in
.pdbrcas you want.Zrincet commentedon Mar 12, 2024
Just wanted to drop a quick thank you for fixing this bug that's been lurking around for ages. Huge relief to see it finally squashed!
[3.11] pythongh-90095: Make .pdbrc work properly and add some reasona…
[3.12] pythongh-90095: Make .pdbrc work properly and add some reasona…
[3.12] gh-90095: Make .pdbrc work properly and add some reasonable te… (
[3.11] gh-90095: Make .pdbrc work properly and add some reasonable te… (
15 remaining items
gaogaotiantian commentedon Mar 14, 2024
Okay I'll do a PR to keep the consistency of the behavior and update the docs (in a way that can be applied to 3.12 and 3.11 as well because no behavior is changed).
gh-90095: Ignore empty lines and comments in `.pdbrc` (#116834)
pythongh-90095: Ignore empty lines and comments in `.pdbrc` (pythonGH…
pythongh-90095: Ignore empty lines and comments in `.pdbrc` (pythonGH…
[3.12] gh-90095: Ignore empty lines and comments in `.pdbrc` (GH-116834…
[3.11] gh-90095: Ignore empty lines and comments in `.pdbrc` (GH-116834…
gaogaotiantian commentedon Mar 15, 2024
Okay we restored the behavior for 3.12 and 3.11, and we also updated the docs to clarify the behavior of
.pdbrc. I'll close this. Let us know if there are more stuff to do for the matter.wbolster commentedon Mar 15, 2024
wow, that was quick. thanks 🙏🏼
pythongh-90095: Ignore empty lines and comments in `.pdbrc` (python#1…
pythongh-90095: Make .pdbrc work properly and add some reasonable tes…
pythongh-90095: Ignore empty lines and comments in `.pdbrc` (python#1…
pythongh-90095: Make .pdbrc work properly and add some reasonable tes…
pythongh-90095: Ignore empty lines and comments in `.pdbrc` (python#1…