gcloud_beta_debug (1)
NAME
- gcloud beta debug - commands for interacting with the Cloud Debugger
SYNOPSIS
-
gcloud beta debug GROUP [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
(BETA) The gcloud beta debug command group provides interaction with
Stackdriver Debugger is a feature of the Google Cloud Platform that lets you inspect the state of an application at any code location without using logging statements and without stopping or slowing down your applications.
More information on Stackdriver Debugger can be found here: cloud.google.com/debugger and detailed documentation can be found here: cloud.google.com/debugger/docs
GCLOUD WIDE FLAGS
These flags are available to all commands: --account, --configuration, --flags-file, --flatten, --format, --help, --log-http, --project, --quiet, --trace-token, --user-output-enabled, --verbosity. Run $ gcloud help for details.
GROUPS
GROUP is one of the following:
-
- logpoints
-
(BETA) Commands for interacting with Cloud Debugger logpoints.
- snapshots
-
(BETA) Commands for interacting with Cloud Debugger snapshots.
- source
-
(BETA) Commands to manage source information for Stackdriver tools.
- targets
-
(BETA) Commands for interacting with Cloud Debugger debug targets.
EXAMPLES
To view all available debug targets, run:
- $ gcloud beta debug targets list
- NAME ID DESCRIPTION default-test gcp:1234:5678 myproject-test-9876543 default-test2 gcp:9012:3456 myproject-test2-1234567
To create a snapshot for a particular target:
- $ gcloud beta debug snapshots create --target=default-test foo.py:12
Note that if there is not a target with the exact name or ID specified, the target is treated as a regular expression to match against the name or description:
- $ gcloud beta debug snapshots create --target=test foo.py:12
-
ERROR: (gcloud.beta.debug.snapshots.create) Multiple possible targets found.
Use the --target option to select one of the following targets:
default-test
default-test2
- In the above case, "test" matches both targets' names. Specifying 'test$' would match only "default-test" (by name), while "9876" would match "default-test" by description.
NOTES
This command is currently in BETA and may change without notice. This variant is also available:
- $ gcloud debug