# editor

Sets the editor for the debugger

****

****

When your debug mode is enabled, you can set your editor to quickly open the file in which the error appeared.

<figure class="video"><video controls><source src="https://getkirby.com/media/pages/docs/reference/system/options/editor/c82aca6ac2-1710149397/error.mp4" type="video/quicktime"></video></figure>

```php
return [
	'debug'  => true,
	'editor' => 'vscode'
];
```

The following editors are supported:

| shortcut | Editor |
| - | - |
| `emacs`| Emacs |
| `idea`| IDEA |
| `macvim`| MacVim |
| `phpstorm`| PhpStorm |
| `sublime`| Sublime Text |
| `textmate`| Textmate |
| `xdebug`| xdebug |
| `vscode`| VSCode |
| `atom`| Atom |
| `espresso`| Espresso |
| `netbeans`| Netbeans |

<alert>
Make sure to disable `debug` mode in production! Displaying PHP errors on a public server can be a serious security risk:

- Error messages are displayed with detailed information about the code structure (e.g. file path, class, method)
- With Whoops enabled, there will be even more detailed information about the code structure

In a production environment, always log errors to your PHP error logs.
</alert>

<a href="https://getkirby.com/docs/reference/system/options/debug">Learn more about the debug mode &hellip;</a>