We're working on a pretty complex backend in Go running on App Engine.
Exploring the gdb debugging options, we can't get gdb to print variables.
Here's what we do:
ps | grep _go_app
...
sudo gdb attach 1734 -d $GOPATH/projectfolder
...
*(gdb) i var Active*
All variables matching regular expression "Active":
File _go_main.go:
<data variable, no debug info> myapp.getUsersActive·f;
struct []string myapp/config.ActiveForUids;
*(gdb) p config.ActiveForUids*
No symbol "config" in current context.
(gdb)
Any idea, why the p command fails?
--
--
rottmann.net | Google+ <https://plus.google.com/106658337982640166595> |
Twitter <http://twitter.com/ralf> | Facebook<http://www.facebook.com/ralfrottmann>|
LinkedIn <http://de.linkedin.com/in/rottmann>
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.