gcloud beta app instances enable-debug Stay organized with collections Save and categorize content based on your preferences.
- NAME
- gcloud beta app instances enable-debug - enable debug mode for an instance(only works on the flexible environment)
- SYNOPSIS
- DESCRIPTION
(BETA)When in debug mode, SSH will be enabled on the VMs, and youcan usegcloud computesshto 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 be
lostif 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=v1i1To 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 helpfor 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.