I had to
p 'myapp/config.ActiveForUids'
On Wednesday, April 30, 2014 1:38:06 AM UTC+2, Ian Lance Taylor wrote:
use single quotes:
p 'config.ActiveForUids'
Otherwise gdb thinks you are referring to a field in a struct named
config.
See http://golang.org/doc/gdb .
Ian
--On Tue, Apr 29, 2014 at 7:03 PM, Ralf Rottmann wrote:
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?
I don't know if this is the only issue, but I know that you need toWe'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?
use single quotes:
p 'config.ActiveForUids'
Otherwise gdb thinks you are referring to a field in a struct named
config.
See http://golang.org/doc/gdb .
Ian
--
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 golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.