diff --git a/Doc/howto/remote_debugging.rst b/Doc/howto/remote_debugging.rst index 78b40bcdf7127b..a044a8246e0d13 100644 --- a/Doc/howto/remote_debugging.rst +++ b/Doc/howto/remote_debugging.rst @@ -8,6 +8,15 @@ execute Python code remotely. Most platforms require elevated privileges to attach to another Python process. +.. note:: + + To disable remote debugging support, use any of the following: + + * Set the :envvar:`PYTHON_DISABLE_REMOTE_DEBUG` environment variable to + any value 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 @@ -614,4 +623,3 @@ To inject and execute a Python script in a remote process: 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. - diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst index a0621d4b0dbd09..693556865ef2f8 100644 --- a/Doc/library/sys.rst +++ b/Doc/library/sys.rst @@ -1997,6 +1997,15 @@ always available. Unless explicitly noted otherwise, all variables are read-only interpreter is pre-release (alpha, beta, or release candidate) then the local and remote interpreters must be the same exact version. + .. note:: + + To disable remote debugging support, use any of the following: + + * Set the :envvar:`PYTHON_DISABLE_REMOTE_DEBUG` environment variable to + any value before starting the interpreter. + * Use the :option:`-X disable_remote_debug` command-line option. + * Compile Python with the :option:`--without-remote-debug` build flag. + .. audit-event:: sys.remote_exec pid script_path When the code is executed in the remote process, an