Prints a message pointing to platform-specific permission help text and exits the program. This function is called when a PermissionError is encountered while trying to attach to a process.
()
| 223 | |
| 224 | |
| 225 | def exit_with_permission_help_text(): |
| 226 | """ |
| 227 | Prints a message pointing to platform-specific permission help text and exits the program. |
| 228 | This function is called when a PermissionError is encountered while trying |
| 229 | to attach to a process. |
| 230 | """ |
| 231 | print( |
| 232 | "Error: The specified process cannot be attached to due to insufficient permissions.\n" |
| 233 | "See the Python documentation for details on required privileges and troubleshooting:\n" |
| 234 | "https://docs.python.org/3.14/howto/remote_debugging.html#permission-requirements\n" |
| 235 | ) |
| 236 | sys.exit(1) |
| 237 | |
| 238 | |
| 239 | def _get_awaited_by_tasks(pid: int) -> list: |
no test coverage detected
searching dependent graphs…