[New-bugs-announce] [issue45937] Pdb can't use the commands through -c or .pdbrc files

Hozoy report at bugs.python.org
Mon Nov 29 22:36:50 EST 2021


New submission from Hozoy <Zrincet at gmail.com>:

I have a python file:

def do_something():
    pass

def main():
    a = 1
    b = 2
    c = a+b
    print(f"c:{c}")
    pass

if __name__ == '__main__':
    main()

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.

----------
components: Library (Lib)
messages: 407350
nosy: Zrincet
priority: normal
severity: normal
status: open
title: Pdb can't use the commands through -c or .pdbrc files
versions: Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45937>
_______________________________________


More information about the New-bugs-announce mailing list