Skip to content

Commit a000851

Browse files
committed
support clear filename:function
1 parent 4d818c1 commit a000851

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Lib/pdb.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1654,12 +1654,13 @@ def _prompt_for_confirmation(self, prompt, default):
16541654
return reply.strip().lower()
16551655

16561656
def do_clear(self, arg):
1657-
"""cl(ear) [filename:lineno | bpnumber ...]
1657+
"""cl(ear) [filename:(lineno | function) | bpnumber ...]
16581658
16591659
With a space separated list of breakpoint numbers, clear
16601660
those breakpoints. Without argument, clear all breaks (but
16611661
first ask confirmation). With a filename:lineno argument,
1662-
clear all breaks at that line in that file.
1662+
clear all breakpoints at that line. With a filename:function
1663+
argument, clear all breakpoints at that function.
16631664
"""
16641665
if not arg:
16651666
reply = self._prompt_for_confirmation(

0 commit comments

Comments
 (0)