summaryrefslogtreecommitdiffstats
path: root/Doc/library/pdb.rst
diff options
context:
space:
mode:
authorTian Gao <gaogaotiantian@hotmail.com>2024-03-15 09:36:04 (GMT)
committerGitHub <noreply@github.com>2024-03-15 09:36:04 (GMT)
commita50cf6c3d76b34e2ee9f92a248f1b0df24e407f6 (patch)
tree5d7a7957df72fad5521457a1086e28214b65d267 /Doc/library/pdb.rst
parent8fc8fbb43a8bb46c04ab55f96049039de243afb0 (diff)
downloadcpython-a50cf6c3d76b34e2ee9f92a248f1b0df24e407f6.zip
cpython-a50cf6c3d76b34e2ee9f92a248f1b0df24e407f6.tar.gz
cpython-a50cf6c3d76b34e2ee9f92a248f1b0df24e407f6.tar.bz2
gh-90095: Ignore empty lines and comments in `.pdbrc` (#116834)
Diffstat (limited to 'Doc/library/pdb.rst')
-rw-r--r--Doc/library/pdb.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/pdb.rst b/Doc/library/pdb.rst
index 1cfca0c..ac3007f 100644
--- a/Doc/library/pdb.rst
+++ b/Doc/library/pdb.rst
@@ -288,7 +288,8 @@ There are three preset *convenience variables*:
If a file :file:`.pdbrc` exists in the user's home directory or in the current
directory, it is read with ``'utf-8'`` encoding and executed as if it had been
-typed at the debugger prompt. This is particularly useful for aliases. If both
+typed at the debugger prompt, with the exception that empty lines and lines
+starting with ``#`` are ignored. This is particularly useful for aliases. If both
files exist, the one in the home directory is read first and aliases defined there
can be overridden by the local file.