Likewise, to debug locally, you just need to install the CodeDeploy agent on any machine, including your local server or EC2 instance.
In this blog post, I will walk you through the steps to validate and debug a sample application package using the codedeploy-local command.
For information, see Use the AWS CodeDeploy Agent to Validate a Deployment Package on a Local Machine in the AWS CodeDeploy User Guide.
For the options to use, see AWS CodeDeploy Agent Configuration Reference in the AWS CodeDeploy User Guide.
Troubleshooting common errors using codedeploy-localThe codedeploy-local command can be used to detect if the appspec.yml is in valid YAML format.