gcloud beta app instances enable-debug

NAME
gcloud beta app instances enable-debug - enable debug mode for an instance(only works on the flexible environment)
SYNOPSIS
gcloud beta app instances enable-debug[INSTANCE][--service=SERVICE,-sSERVICE][--version=VERSION,-vVERSION][GCLOUD_WIDE_FLAG]
DESCRIPTION
(BETA) When in debug mode, SSH will be enabled on the VMs, and youcan usegcloud computessh to login to them. They will be removed from the health checkingpools, but they still receive requests.

Note that any local changes to an instance will belost if debugmode is disabled on the instance. New instance(s) may spawn depending on theapp's scaling settings.

Additionally, debug mode doesn't work for applications using the App Enginestandard environment.

EXAMPLES
To enable debug mode for a particular instance, run:
gcloudbetaappinstancesenable-debug--service=s1--version=v1i1

To enable debug mode for an instance chosen interactively, run:

gcloudbetaappinstancesenable-debug
POSITIONAL ARGUMENTS
[INSTANCE]
Instance ID to enable debug mode on. If not specified, select instanceinteractively. Must uniquely specify (with other flags) exactly one instance
FLAGS
--service=SERVICE,-sSERVICE
If specified, only match instances belonging to the given service. This affectsboth interactive and non-interactive selection.
--version=VERSION,-vVERSION
If specified, only match instances belonging to the given version. This affectsboth interactive and non-interactive selection.
GCLOUD WIDE FLAGS
These flags are available to all commands:--access-token-file,--account,--billing-project,--configuration,--flags-file,--flatten,--format,--help,--impersonate-service-account,--log-http,--project,--quiet,--trace-token,--user-output-enabled,--verbosity.

Run$gcloud help for details.

NOTES
This command is currently in beta and might change without notice. This variantis also available:
gcloudappinstancesenable-debug

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-05-07 UTC.