SIGUSR2 : open an interactive console using rconsole (http://code.google.com/p/rfoo/) and let me log and muck around with live object while the server process keeps running.[NOTE: don't use on production systems, it opens an RPC port that lets anyone control your process remotely!]
from rfoo.utils import rconsole
rconsole.spawn_server()
As a variant, if you want a language-level backtrace in an interpreted language, you can:
- set up a signal handler which dumps a (perl, python, etc) level backtrace
- hit the program with the signal a few times