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-PODin 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
PATHto the configuration file. -e,--environment- Specify the
ENVIRONMENTto use for this command. Overrides the default environment from configuration. --no-colors- Disable colors in the output.
-t,--team- Specify the
TEAMto 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.