nais debug

nais debug APP_NAME [flags]

When flag “–copy” is set, the command can be used to debug a copy of the original pod, allowing you to troubleshoot without affecting the live pod.

To debug a live pod, run the command without the “–copy” flag.

You can only reconnect to the debug session if the pod is running.

Options

-b, --by-pod
Attach to a specific BY-POD in a workload.
--copy
Create a copy of the pod with a debug container. The original pod remains running and unaffected.

Inherited options

--config
Specify the PATH to the configuration file.
-e, --environment
Specify the ENVIRONMENT to use for this command. Overrides the default environment from configuration.
--no-colors
Disable colors in the output.
-t, --team
Specify the TEAM to use for this command. Overrides the default team from configuration.
-v, --verbose
Set verbosity level. Use -v for verbose, -vv for debug, -vvv for trace.