As announced today in Production Troubleshooting with Cloud Debugger now available for Python, supposedly I can use Python Debugger now.
I am running AppEngine Managed VMs on GCE images, so am following the guide for Setting up Python on Compute Engine. I have modified my Dockerfile to add pip install google-python-cloud-debugger
(I've also tried installing the library directly into my app/lib, which is included in my sys.path):
FROM gcr.io/google_appengine/python-compat
RUN pip install google-python-cloud-debugger
ADD . /app
And then I have modified my main.py to enable the debugger:
try:
import googleclouddebugger
googleclouddebugger.AttachDebugger()
except ImportError:
pass
Unfortunately, when I commit the code, run gcloud preview app gen-repo-info-file
, and push it, I cannot use the debugger. When I go to https://console.developers.google.com/debug, it loads my github repository on the right, but I see an error message in the left-hand nav area:
Debugging is not available. You can debug Java applications running on App Engine or Compute Engine
Any ideas what might be going wrong, or how to debug the debugger?