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 hjzin
Recipients hjzin, iritkatriel
Date 2021-04-20.10:58:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1618916286.49.0.586498613331.issue43318@roundup.psfhosted.org>
In-reply-to
Content
I found a typo in the reproduce step. I'm going to fix it here.

The unit test is updated in PR. Now it has some conflicts with the master branch, and I will resolve them soon.

The steps to reproduce the bug:

Assume the file to be debugged is foo.py(You can use any file you want).

1. start pdb: python -m pdb foo.py

2. set a breakpoint on any line of the file:

(Pdb) b 2
Breakpoint 1 at foo.py:2
(Pdb) b
Num Type         Disp Enb   Where
1   breakpoint   keep yes   at foo.py:2

3. when clear the breakpoint using breakpoint number, it will get a output("Deleted breakpoint 1 at ..."):

(Pdb) cl 1
Deleted breakpoint 1 at foo.py:2

4. set another breakpoint:

(Pdb) b 3
Breakpoint 2 at foo.py:3

5. if breakpoint is cleared using (filename:lineno), it gets nothing:

(Pdb)cl foo.py:3
(Pdb)
History
Date User Action Args
2021-04-20 10:58:06hjzinsetrecipients: + hjzin, iritkatriel
2021-04-20 10:58:06hjzinsetmessageid: <1618916286.49.0.586498613331.issue43318@roundup.psfhosted.org>
2021-04-20 10:58:06hjzinlinkissue43318 messages
2021-04-20 10:58:05hjzincreate