Skip to content

gh-135490: Add warning about arguments that conflict with pdb #135520

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions Doc/library/pdb.rst
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,15 @@ after normal exit of the program), pdb will restart the program. Automatic
restarting preserves pdb's state (such as breakpoints) and in most cases is more
useful than quitting the debugger upon program's exit.

.. warning::
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be a note, not a warning. Warnings are typically reserved for security problems and things along those lines.


If the target program has arguments that overlap with those given below,
they will be parsed incorrectly. To avoid this problem, separate target
program arguments from ``pdb`` arguments using ``--``, for example::

pdb target.py -- -m "Target program argument"
pdb -m target -- -m "Target program argument"

.. option:: -c, --command <command>

To execute commands as if given in a :file:`.pdbrc` file; see
Expand Down
Loading