Skip to content

Commit 0d214f8

Browse files
[3.14] gh-159010: Fix spelling of -X disable-remote-debug option in docs (GH-159014) (#159413)
(cherry picked from commit 9124802) Co-authored-by: Abhishek Acharya <118182738+abhishekacharya200@users.noreply.github.com>
1 parent 43a8cdc commit 0d214f8

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
@@ -634,7 +634,7 @@ Miscellaneous options
634634

635635
.. versionadded:: 3.13
636636

637-
* ``-X disable_remote_debug`` disables the remote debugging support as described
637+
* ``-X disable-remote-debug`` disables the remote debugging support as described
638638
in :pep:`768`. This includes both the functionality to schedule code for
639639
execution in another process and the functionality to receive code for
640640
execution in the current process.
@@ -1244,7 +1244,7 @@ conflict.
12441244
to schedule code for execution in another process and the functionality to
12451245
receive code for execution in the current process.
12461246

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

12491249
.. versionadded:: 3.14
12501250

0 commit comments

Comments
 (0)