Skip to content

Instantly share code, notes, and snippets.

@mjuarez
Created November 30, 2015 19:04
Show Gist options
  • Save mjuarez/ea1769246ef1031a698a to your computer and use it in GitHub Desktop.
Save mjuarez/ea1769246ef1031a698a to your computer and use it in GitHub Desktop.
Quick and Dirty Golang GDB
#!/bin/bash
eval $(go test -c -work 2>&1 >/dev/null | head -n 1)
echo $WORK
gdb `basename $PWD`.test -d $WORK
echo "Deleting $WORK"
rm -rf $WORK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment