进行App Engine调试

I'm using dev_appserver.py to run my Go App locally on my Ubuntu machine. I'm trying to debug the application but can't seem to find the go process to attach a debugger to. Can anyone point me in the right direction?

The process you are looking for when running the go-appengine-sdk using the google-cloud-sdk is _go_app. Simply modifying my app to start with a NoOp infinite for loop was enough to send it to the top of the CPU usage list so I could find it.

enter image description here

So on Ubuntu, a simple ps aux | grep _go_app should list the PID.

P.S. This was done on a Mac, so it's possible (however unlikely) that it could be different. But doing your own NoOp for loop to find it would work anyway.