← 返回命令列表

Linux command

manhole 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Connect to process

manhole [pid]

Connect to Unix socket

manhole [/var/run/manhole.sock]

Connect with timeout

manhole -t [30] [pid]

Verbose connection

manhole -v [pid]

说明

manhole provides remote debugging access to Python processes. It opens an interactive Python shell. The tool connects to processes running the manhole library. Useful for debugging live applications.

参数

-t _SECONDS_
Connection timeout.
-v
Verbose output.
--help
Display help information.

FAQ

What is the manhole command used for?

manhole provides remote debugging access to Python processes. It opens an interactive Python shell. The tool connects to processes running the manhole library. Useful for debugging live applications.

How do I run a basic manhole example?

Run `manhole [pid]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -t _SECONDS_ do in manhole?

Connection timeout.