Documentation
Although PEP 768 mentions how to disable the mechanism of remote debugging, it is not documented in the Python docs.
It would be helpful to add the information about the PYTHON_DISABLE_REMOTE_DEBUG environment variable, the -X disable-remote-debug CLI flag, and --without-remote-debug build flag which instruct the interpreter to ignore any attempts to attach a debugger.
(Created based on a discussion on Mastodon; thanks Jörn Franke)
Linked PRs
Documentation
Although PEP 768 mentions how to disable the mechanism of remote debugging, it is not documented in the Python docs.
It would be helpful to add the information about the
PYTHON_DISABLE_REMOTE_DEBUGenvironment variable, the-X disable-remote-debugCLI flag, and--without-remote-debugbuild flag which instruct the interpreter to ignore any attempts to attach a debugger.(Created based on a discussion on Mastodon; thanks Jörn Franke)
Linked PRs