Skip to content

Instantly share code, notes, and snippets.

@nobonobo
Last active August 29, 2015 13:56
Show Gist options
  • Select an option

  • Save nobonobo/8994406 to your computer and use it in GitHub Desktop.

Select an option

Save nobonobo/8994406 to your computer and use it in GitHub Desktop.
#golang のテストコードをトレースデバッグする方法。
#!/bin/bash
eval `go test -c -work |& head -n1`
gdb -tui `basename $PWD`.test -d $WORK -ex "b main.main" -ex "run"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment