I am trying to enable Google Cloud Debugger for a Flask app that I am running in Cloud Run.
The project is a simple "Hello World" with Flask and Dockerfile. The code is synced for Bitbucket to Cloud Source Repositories and set to trigger launch on master branch update.
Everything is working as expected, with new pushes triggering a successful build. Now, though, I want to add Cloud Debugger and have hit some problems.
Following the documentation, I have:
- Enabled Cloud Debugger API
- Added
pip install google-python-cloud-debugger
to my Dockerfile - Added the following code early in my application
try:
import googleclouddebugger
googleclouddebugger.enable(
breakpoint_enable_canary=True
)
except ImportError:
pass
I pushed the changes and the build was successful.
I can see that the Cloud Repository is showing the right commit, but when I look under debugger, no applications are visible (screen shot 1 below) and if I click "start debugging" in Cloud Source Repo, I get a message saying that I need to setup Debugger (screenshot 2)
Can anyone tell me what I am missing?