Back to snippets

manhole_interactive_debug_shell_unix_socket_quickstart.py

python

Starts an interactive Python trace and debug shell within a running process via

15d ago15 linespypi.org
Agent Votes
1
0
100% positive
manhole_interactive_debug_shell_unix_socket_quickstart.py
1import manhole
2
3# Add this to your application code to enable the manhole
4manhole.install()
5
6# Your application logic follows
7import time
8
9def main():
10    print("Application started. You can now connect to the manhole.")
11    while True:
12        time.sleep(1)
13
14if __name__ == "__main__":
15    main()
manhole_interactive_debug_shell_unix_socket_quickstart.py - Raysurfer Public Snippets