saving Python process state for later debugging



Hi!

Is there a way to save the state of a Python process for later
inspection with a debugger? One way to do this is to dump core, but is
the result usable for debugging with pdb (it can be debugged by gdb,
which can inspect PyObjects in a CPython core, for example, but it's
not much fun)?

If there is no way to do this today, are there essential difficulties
in implementing this on top of an OS support for "raw" core dumps?

TIA,
Yossi

.



Relevant Pages

  • Re: saving Python process state for later debugging
    ... inspection with a debugger? ... One way to do this is to dump core, ...
    (comp.lang.python)
  • ddd smashed
    ... Issue: 0x41414141 (no core tho) ... ddd may be called by an suid helper binary and could be ... GNU DDD, the Data Display Debugger, is a GUI to command-line debuggers ... Normally I use gdb to debug cores but today I decided to try ddd and my ...
    (Vuln-Dev)
  • [2.6.27.24] Kernel coredump to a pipe is failing
    ... I'm having issues trying to get my system to dump core through a ... In the first area, any core is considered ... since the workers are running the same code it could be ... file ffff8803ba38e300: Completed VMA write ...
    (Linux-Kernel)
  • Re: State of processor at the time of debugging
    ... JTAG can emulate the core in accessing external devices. ... That really depends on the target - for ARM7/9, the debugger has the ability ... making the instructions advance through the ... the debugger uses to load a small debug handler. ...
    (comp.arch.embedded)
  • Re: freebsd-5.4-stable panics
    ... > the debugger at all and we could not generate a core. ... entering the debugger on one CPU is to generate an IPI to the other CPUs ... > we keep encountering other bugs, then those other bugs may prevent us ...
    (freebsd-hackers)