Let’s say you need to debug a port driver in Erlang. This typically involves gdb (unless you prefer the printf route). Go to where erlang is installed and edit the bin/erl script. Change the last line from:
exec $BINDIR/erlexec ${1+”$@”}
to:
if [ ! -z "$USE_GDB" ]; then
gdb [...]
© Gradual Epiphany. Powered by WordPress using the DePo Skinny Theme.