Skip to content

Instantly share code, notes, and snippets.

@tony612
Created September 3, 2016 16:44
Show Gist options
  • Save tony612/117d04844cd6c9aa4ecd437d2eecd530 to your computer and use it in GitHub Desktop.
Save tony612/117d04844cd6c9aa4ecd437d2eecd530 to your computer and use it in GitHub Desktop.
if [ ! -z "$USE_GDB" ]; then
gdb $BINDIR/erlexec --args $BINDIR/erlexec ${1+"$@"}
elif [ ! -z "$USE_LLDB" ]; then
lldb -- $BINDIR/erlexec ${1+"$@"}
else
exec "$BINDIR/erlexec" ${1+"$@"}
fi
USE_GDB=1 iex -S mix
gdb> r
gdb> c
iex>
...
gdb> backtrace
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment