> ## Documentation Index
> Fetch the complete documentation index at: https://docs.minestorecms.com/llms.txt
> Use this file to discover all available pages before exploring further.

# How to Enable Debug Mode?

> Learn how to enable debug mode in MineStoreCMS to troubleshoot issues and errors.

<Warning>
  If you are facing any issues or errors in MineStoreCMS, you can enable debug mode to get more information about the issue. However, enabling debug mode is not recommended for production environments as it may expose sensitive information.
  You should only enable debug mode for troubleshooting purposes or when got asked by support team and disable it again when you are done.
</Warning>

## **Enabling Debug Mode**

To enable debug mode in MineStoreCMS, you need to edit the `.env` file in the root directory of your MineStoreCMS installation. You can do this by using the following command in the terminal:

```bash theme={null}
nano /var/www/minestore/.env
```

Then, you need to find the following line in the `.env` file and set it to `true`:

```bash theme={null}
APP_DEBUG=true
```

<img className="rounded-md" src="https://mintcdn.com/minestorecms/VtrvDTg9Ae1Jio21/images/others/debug-mode.png?fit=max&auto=format&n=VtrvDTg9Ae1Jio21&q=85&s=ac38b28de77e6f2c750d1225239389d7" alt="Laravel Debug Mode" width="591" height="116" data-path="images/others/debug-mode.png" />

After that, save the file and exit the editor. You can do this by pressing `CTRL + X`, then `Y`, and then `Enter`.

Then, you need to run the following command in the terminal to apply changes:

```bash theme={null}
cd /var/www/minestore
php artisan config:cache
```

<Warning>
  After enabling debug mode, you need to disable it again when you are done troubleshooting. You can do this by setting the `APP_DEBUG` variable back to `false` in the `.env` file.
</Warning>
