How to do it...

In this recipe, we'll run a Flask application, similar to the previous recipe, to demonstrate the debugging facility of the Stackdriver debugger. In addition to running it, the debugger should have access to the code base; in our example we'll upload the code to Google Cloud Repositories:

  1. Create the Flask VM similar to the previous recipe (step 1 and step 2) or you can re-use the machine created.
  2. SSH into the VM and make sure Python and PIP are installed.
  3. Install Git using the following command:
$ sudo apt-get update$ sudo apt-get install git
  1. Let's move out of the VM, launch a Google Cloud Shell, and create a Google source code repository. If you want to run the gcloud command to create the repository from the VM, the service ...

Get Google Cloud Platform Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.