Skip to content

Instantly share code, notes, and snippets.

@tav
Created July 23, 2011 19:48
Show Gist options
  • Save tav/1101805 to your computer and use it in GitHub Desktop.
Save tav/1101805 to your computer and use it in GitHub Desktop.

gonicetrace.Print() outputs:

recover: ow
/Users/tav/gocode/gonicetrace/nicetrace/nicetrace_test.go:12
gonicetrace%2egooglecode%2ecom/hg/nicetrace.TestTrace()
/Users/tav/silo/ampify/third_party/go/src/pkg/testing/testing.go:156 testing.tRunner()

debug.PrintStack() outputs:

/Users/tav/silo/ampify/third_party/go/src/pkg/runtime/proc.c:1247 (0x1073e)
    panic: reflect·call(d->fn, d->args, d->siz);
/Users/tav/gocode/gonicetrace/nicetrace/nicetrace_test.go:12 (0x16211)
    TestTrace: panic("ow")
/Users/tav/silo/ampify/third_party/go/src/pkg/testing/testing.go:156 (0x17791)
    tRunner: test.F(t)
/Users/tav/silo/ampify/third_party/go/src/pkg/runtime/proc.c:244 (0xeb57)
    goexit: runtime·goexit(void)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment