Skip to content

Commit 9124802

Browse files
gh-159010: Fix spelling of -X disable-remote-debug option in docs (#159014)
1 parent e96d943 commit 9124802

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎Doc/howto/remote_debugging.rst‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ To disable remote debugging support, use any of the following:
1616

1717
* Set the :envvar:`PYTHON_DISABLE_REMOTE_DEBUG` environment variable to ``1`` before
1818
starting the interpreter.
19-
* Use the :option:`-X disable_remote_debug` command-line option.
19+
* Use the :option:`-X disable-remote-debug` command-line option.
2020
* Compile Python with the :option:`--without-remote-debug` build flag.
2121

2222
.. _permission-requirements:
@@ -717,7 +717,7 @@ When to use ``PYTHON_DISABLE_REMOTE_DEBUG``
717717
-------------------------------------------
718718

719719
The environment variable :envvar:`PYTHON_DISABLE_REMOTE_DEBUG` (and the
720-
equivalent :option:`-X disable_remote_debug` flag) allows operators to disable
720+
equivalent :option:`-X disable-remote-debug` flag) allows operators to disable
721721
the in-process side of the protocol as a **defence-in-depth** measure. This
722722
may be useful in hardened or sandboxed deployment environments where no
723723
debugging or profiling of the process is expected and reducing attack surface

‎Doc/using/cmdline.rst‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@ Miscellaneous options
652652

653653
.. versionadded:: 3.13
654654

655-
* ``-X disable_remote_debug`` disables the remote debugging support as described
655+
* ``-X disable-remote-debug`` disables the remote debugging support as described
656656
in :pep:`768`. This includes both the functionality to schedule code for
657657
execution in another process and the functionality to receive code for
658658
execution in the current process.
@@ -1313,7 +1313,7 @@ conflict.
13131313
to schedule code for execution in another process and the functionality to
13141314
receive code for execution in the current process.
13151315

1316-
See also the :option:`-X disable_remote_debug` command-line option.
1316+
See also the :option:`-X disable-remote-debug` command-line option.
13171317

13181318
.. versionadded:: 3.14
13191319

0 commit comments

Comments
 (0)