mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-08 18:45:13 +00:00
79 lines
2.5 KiB
Text
79 lines
2.5 KiB
Text
NAME
|
|
gcloud debug - commands for interacting with the Cloud Debugger
|
|
|
|
SYNOPSIS
|
|
gcloud debug GROUP [GCLOUD_WIDE_FLAG ...]
|
|
|
|
DESCRIPTION
|
|
(DEPRECATED) Commands for interacting with the Cloud Debugger.
|
|
|
|
Cloud Debugger is deprecated and will be shutdown May 31, 2023.
|
|
|
|
See: https://cloud.google.com/debugger/docs/deprecations
|
|
|
|
The gcloud debug command group provides interaction with Cloud Debugger,
|
|
allowing you to list and manipulate debugging targets, snapshots and
|
|
logpoints.
|
|
|
|
Cloud Debugger is a feature of Google Cloud 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 Cloud Debugger can be found here:
|
|
https://cloud.google.com/debugger and detailed documentation can be found
|
|
here: https://cloud.google.com/debugger/docs/
|
|
|
|
EXAMPLES
|
|
To view all available debug targets, run:
|
|
|
|
$ gcloud 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 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 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.
|
|
|
|
GCLOUD WIDE FLAGS
|
|
These flags are available to all commands: --help.
|
|
|
|
Run $ gcloud help for details.
|
|
|
|
GROUPS
|
|
GROUP is one of the following:
|
|
|
|
logpoints
|
|
(DEPRECATED) Commands for interacting with Cloud Debugger logpoints.
|
|
|
|
snapshots
|
|
(DEPRECATED) Commands for interacting with Cloud Debugger snapshots.
|
|
|
|
source
|
|
(DEPRECATED) Commands to manage source information for Cloud Debugger.
|
|
|
|
targets
|
|
(DEPRECATED) Commands for interacting with Cloud Debugger debug
|
|
targets.
|
|
|
|
NOTES
|
|
This variant is also available:
|
|
|
|
$ gcloud beta debug
|
|
|