> For the complete documentation index, see [llms.txt](https://developers.weglot.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.weglot.com/wordpress/helpers-functions-1/weglot_debug_file.md).

# weglot\_debug\_file

To activate the debug mode the steps are:

* In Weglot.php set **`WEGLOT_DEBUG`** to true
* Create a file **`content.html`** on Weglot plugin dir root&#x20;

```php
add_filter( 'weglot_debug_file', 'path to your file' );
```

With this filter you can access debug mode from another file instead of :

```
WEGLOT_DIR . '/content.html'
```
