summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2021-06-15 15:17:58 +0200
committerTobias Klauser <tklauser@distanz.ch>2021-06-15 15:17:58 +0200
commit59574714c841c2ae34bbd99154bac0c4d5a86f7b (patch)
tree621b75de1363fd4801c2f400b39e40e78faa1ddb
parent6a24507ab1dc10c2e0b208f870d10dc578c65056 (diff)
zshenv: set GOTRACEBACK=all
See https://github.com/maruel/panicparse#gotraceback
-rw-r--r--.zsh/zshenv/80_go4
1 files changed, 4 insertions, 0 deletions
diff --git a/.zsh/zshenv/80_go b/.zsh/zshenv/80_go
index 06fb34c..b245430 100644
--- a/.zsh/zshenv/80_go
+++ b/.zsh/zshenv/80_go
@@ -38,4 +38,8 @@ alias gotip=$HOME/src/go/bin/go
# export GOPROXY=direct
# export GOSUMDB=off
+# Get all goroutine traces on panic, not just the crashing one. See
+# https://github.com/maruel/panicparse#gotraceback
+export GOTRACEBACK=all
+
# vim:ft=zsh