This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Zrincet
Recipients Zrincet
Date 2021-11-30.03:36:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1638243410.6.0.709504814494.issue45937@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2021-11-30 03:36:50Zrincetsetrecipients: + Zrincet
2021-11-30 03:36:50Zrincetsetmessageid: <1638243410.6.0.709504814494.issue45937@roundup.psfhosted.org>
2021-11-30 03:36:50Zrincetlinkissue45937 messages
2021-11-30 03:36:50Zrincetcreate