This topic describes how to use Stackdriver Debugger to inspect code stored in Cloud Source Repositories and deployed to App Engine. Using Stackdriver Debugger, you can inspect the state of an application in real time, without stopping or slowing it down.
Before you begin
Complete the steps from Quickstart Creating a Repository.
After you complete this quickstart, you will have an application you can deploy to App Engine.
Deploy your application
From a terminal window, navigate to the root of your repository.
Deploy your application.
gcloud app deploy --version=v1
Open your application.
gcloud app browse
The browser window reads:
View Deployed Sources
After you deploy your application, you can view its sources on the Google Cloud Platform Console Debug page.
Navigate to the Debug page in the Google Cloud Platform Console.
Make sure you have the correct project selected.
defaultis selected in the menu at the top. This indicates which service/version of your app you will be debugging.
Deployed Filesis selected in the menu at the left. This panel displays the source code of the Python app you just deployed.
main.pyfrom the list of deployed files to see its contents.
To avoid incurring charges to your Google Cloud Platform account for the resources used in this quickstart:
To delete the repository you created:
Open the source view in the GCP Console:
Click the More button next to the repository you want to delete.
When prompted for the repository name, enter
hello-csrand then click Delete.
- Learn more about Debugger