You can use Stackdriver Debugger to inspect the state of a running app in real time, without stopping or slowing it down.
Debugger can automatically detect code from multiple languages and Google Cloud platforms. How you set up Debugger varies depending on what programming language your app uses. To learn how to set up Debugger, see these how-to guides.
After you set up Debugger for your app, your next step is to select your source code. Depending on your app, you can either have Debugger select your source code automatically or you can select your source code manually.
In cases where Debugger doesn't detect your code automatically, you can select it manually by following these steps:
In the Google Cloud Console, go to the Stackdriver Debug page.
From the Select source drop-down list, click Add source code.
In the Alternative source code pane, find the Cloud Source Repositories section, and then click Select source.
In the Select source from Cloud Source Repositories dialog, select the options for your Google Cloud project, repository, and the branch or tagged version.
Click Select Source.