LinuxCommandLibrary

manhole

provides remote debugging access to Python processes

TLDR

Connect to process

$ manhole [pid]
copy
Connect to Unix socket
$ manhole [/var/run/manhole.sock]
copy
Connect with timeout
$ manhole -t [30] [pid]
copy
Verbose connection
$ manhole -v [pid]
copy

SYNOPSIS

manhole [options] target

DESCRIPTION

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.

PARAMETERS

TARGET

Process ID or socket path.
-t SECONDS
Connection timeout.
-v
Verbose output.
--help
Display help information.

CAVEATS

Target must use manhole library. Security considerations for production. Python-specific.

HISTORY

manhole was created to provide runtime debugging access to Python applications without restart.

SEE ALSO

gdb(1), strace(1), python(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community