Although PEP 768 mentions how to disable the mechanism of
remote debugging, it is not documented in the Python docs.
This change adds a note on how to disable remote debugging support
in a Python interpreter to the remote debugging how-to.
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Most platforms require elevated privileges to attach to another Python process.
+Disabling remote debugging
+--------------------------
+
+To disable remote debugging support, use any of the following:
+
+* Set the :envvar:`PYTHON_DISABLE_REMOTE_DEBUG` environment variable to ``1`` before
+ starting the interpreter.
+* Use the :option:`-X disable_remote_debug` command-line option.
+* Compile Python with the :option:`--without-remote-debug` build flag.
+
.. _permission-requirements:
Permission requirements
6. Set ``_PY_EVAL_PLEASE_STOP_BIT`` in the ``eval_breaker`` field.
7. Resume the process (if suspended). The script will execute at the next safe
evaluation point.
-
interpreter is pre-release (alpha, beta, or release candidate) then the
local and remote interpreters must be the same exact version.
+ See :ref:`remote-debugging` for more information about the remote debugging
+ mechanism.
+
.. audit-event:: sys.remote_exec pid script_path
When the code is executed in the remote process, an
.. availability:: Unix, Windows.
.. versionadded:: 3.14
+ See :pep:`768` for more details.
.. function:: _enablelegacywindowsfsencoding()