-
-
Notifications
You must be signed in to change notification settings - Fork 34.5k
gh-143993: Document ways to disable remote debugging support #143994
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 4 commits
03701c3
6b6a501
cdf5fa2
4094fd9
52a4439
5d7a544
a79c3cc
e9da708
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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. | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would prefer suggesting a specific value such as
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed in 5d7a544 |
||
| * 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. | ||
|
|
||
|
picnixz marked this conversation as resolved.
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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. | ||
|
|
||
|
Comment on lines
1998
to
1999
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What do you think about adding a reference to the HOWTO here? For example: |
||
| .. 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 | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This probably deserves its own little section that appears in the sidebar :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good, added in 52a4439 :)