Skip to content

Instantly share code, notes, and snippets.

@calvernaz
Last active June 16, 2018 09:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save calvernaz/07fada864bab5e419afd29a328717fe1 to your computer and use it in GitHub Desktop.
Save calvernaz/07fada864bab5e419afd29a328717fe1 to your computer and use it in GitHub Desktop.
Debug GAE using Go and Goland IDE
1. tar xfvz google-cloud-sdk-204.0.0-darwin-x86_64.tar.gz
2. ./google-cloud-sdk/install.sh
3. source ~/.config/fish/config.fish
4. gcloud init
5. gcloud components install app-engine-go
6. set -x PATH $PATH ~/google-cloud-sdk/platform/google_appengine
7. source ~/.config/fish/config.fish
8. cd <gae-project> ; goapp serve --debug
9. go get -t github.com/google/gops (Without this I couldn't see the debugging app)
10. Golang IDE -> Run -> Attach to Local Process -> Select the one that ends with "_go_app"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment