# Running the agent in Debug Mode

To run the agent in debug mode, start by stopping the service:

`sudo service ardexa stop`

Edit the `ardexa.yaml` file and change the debug level to 2 and set stdout to true

`debug: 2`\
`stdout: true`

Now launch the agent in the foreground

`sudo ardexa`
