Debugging overview

If you store your application code in Cloud Source Repositories, you can use the source console to perform Stackdriver Debugger tasks. These include taking and viewing debug snapshots, adding logpoints, and viewing logpoint outputs.

The debugging functionality in Cloud Source Repositories is an alternative to the functionality provided by Stackdriver Debugger in the Google Cloud Platform Console. See the Stackdriver Debugger documentation for more information about setting up the product and using the Google Cloud Platform Console interface.

Supported code locations

You can use the debugging functionality in the source console if your code is located in one of the following:

If your source code is located in a non-mirrored repository hosted on a service like GitHub or Bitbucket, or you are debugging from local files, you must perform debugging tasks in the Google Cloud Platform Console instead.

Setting up debugging

Before you debug your application in Cloud Source Repositories:

  • Enable Stackdriver Debugger for your Google Cloud Platform project and configure your environment and your application. These steps vary by language or framework used to implement the application.

  • Deploy and/or start your application.

Debugging in Cloud Source Repositories

Debugging tabs appear in the bottom panel of the source console when you view the contents of the repository. These become usable once you have set up Stackdriver Debugger to work with your project and application.

Debugging tabs in the source console

Debugging tasks

You can do the following in Cloud Source Repositories:

  • Take debug snapshots, which allows you to view the state of local variables and the call stack in your application at specific points in your code.

  • Add logpoints to your code, which allows you to inject logging into a running service without restarting it or interfering with its normal function.

What's next

Bu sayfayı yararlı buldunuz mu? Lütfen görüşünüzü bildirin:

Şunun hakkında geri bildirim gönderin...

Cloud Source Repositories Documentation