This topic describes how to use Stackdriver Debugger to inspect code stored in Cloud Source Repositories and deployed to App Engine. Using Debugger, you can inspect the state of an app in real time, without stopping or slowing it down.
Before you begin
Complete the steps from Quickstart: Create a repository. After you complete that quickstart, you have an app you can deploy to App Engine.
Deploy your app
In a terminal window, go to the root of your repository:
Deploy your app:
gcloud app deploy --version=v1
Open your app:
gcloud app browse
The browser displays the message
View deployed sources
After you deploy your app, view its sources in the Google Cloud Platform Console.
In the GCP Console, go to the Stackdriver Debug page.
Select your Google Cloud Platform (GCP) project.
In the toolbar, select default.
This setting indicates which service or version of your app that you're debugging.
Select Deployed Files.
A panel displays the source files for the Python app you just deployed. In the list of deployed files, you can click
main.pyto view its contents.
To avoid incurring charges to your GCP account for the resources used in this quickstart, follow these steps.
In the GCP Console, open the All repositories page for Cloud Source Repositories.
Hold the pointer over the repository you want to delete and click Settings settings.
The General settings page opens.
Click Delete this repository delete.
The Remove repository dialog opens.
Type the name of the repository you want to delete.
- Learn more about Debugger.