Skip to content

Commit 4657a7b

Browse files
Mention remote debugging via -p PID in usage text
Adds a brief note to the pdb help summary about attaching to a running process using the -p option, making the remote debugging feature more visible.
1 parent 8d490b3 commit 4657a7b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/pdb.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3489,7 +3489,8 @@ def help():
34893489
_usage = """\
34903490
Debug the Python program given by pyfile. Alternatively,
34913491
an executable module or package to debug can be specified using
3492-
the -m switch.
3492+
the -m switch. You can also attach to a running Python process
3493+
using the -p option with its PID.
34933494
34943495
Initial commands are read from .pdbrc files in your home directory
34953496
and in the current directory, if they exist. Commands supplied with

0 commit comments

Comments
 (0)