I"m (slowly) working on a app-engine app using the go language -- While I like many parts of the experience (the nice integration with google services and the go language itself) but I'm a bit suprised at the lack of debug facilities especially with app engine.
I know that you can log to the console (The lowest form of debugging IMHO) but all attempts at anything more clever (attaching gdb on the local instance) fails. (the build tools for app engine specifically seem to strip debug info)
I can't believe I'm the only one who has observed this so I'm wondering what other folks are doing to develop/debug in app engine?
There is not currently a better way than context.Errorf()
and friends. Python just got pdb
support in the 1.8.3 SDK. I have not heard of any similar debugger support for go. It is perhaps worth asking on the app engine go list about this.
I just red about your topic in this blog:
http://joshua.themarshians.com/hardcore-google-unit-testing.html
I can't give you an example but maybe it will help.
it's been an update and I thought to add what is the current state of affair.
The good news is the go tools now no longer strip debug symbols so if you are running on your local machine you can now get gdb support!
It's a bit of a process and ripe for some more automation (suggestions welcome)
in short:
Boom -- debugging.