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 GCP account for the resources used in this quickstart:
To delete the repository you created:
Open the All Repositories view for Cloud Source Repositories:
Hover over the repository and click the Gear button.
The General Settings screen opens.
Click Delete This Repository.
The Remove Repository screen opens.
Type the name of the repository that you want to delete.
- Learn more about Debugger