[WIP]
pgdb
is gdb-like wrapper for pldebugger
Install pldebugger first
git clone http://git.postgresql.org/git/pldebugger.git
cd pldebugger
make install USE_PGXS=1
Add following line to postgresql.conf
file
shared_preload_libraries = '$libdir/plugin_debugger'
and restart postgres server.
Run
python pgdb.py [-h] [--user <username>] [--database <database_name>] [--func <function_name>]
Commands:
breakpoint <func_name>
orb <func_name>
sets breakpoint on functionrun
orr
starts waiting until function executesnext
orn
moves to the next line of source codecontinue
orc
runs code until next breakpoint or end of functionprint <var>
orp <var>
prints variable namelist
orl
prints current function's source code