SigInfoPDB
SigInfoPDB starts the Python Debugger PDB for interactive debugging
SigInfoPDB class
- class siginfo.siginfoclass.SigInfoPDB(info=True, usr1=True, usr2=False, output=None)[source]
Bases:
SiginfoBasicSigInfo class that starts the Python PDB Debugger
Instead of printing out the call stack, it allows to interactively inspect the current frame via PDB Debugger.
Local variables from current frame are avaialable via the
_localsdict.Example
foo = SigInfoPDB() do_long_task() # create executeable to send signal to Python script foo.create_info_script('/usr/local/bin')
Now get access to PDB debugger in another terminal window:
# send signal via custom script /usr/local/bin/siginfo-USR1- create_info_script(path=None, prefix='', overwrite=False)
Create an executable on the file system to send the appropiate signal.
For user convenience, create executable filess in the specified path that can be used to send corresponding signals to the parent’s script.
- Parameters:
path (str) – path to executable files (default $HOME)
prefix (str) – Prefix of the executable file name (default ‘’)
overwrite (bool) – Overwrite existing executables (default False)
- Return type:
None