mirror of
https://github.com/filp/whoops.git
synced 2026-09-11 18:26:22 +00:00
Implemented automatic editor configuration if Xdebug is available.
This commit is contained in:
@@ -126,6 +126,9 @@ class PrettyPageHandler extends Handler
|
||||
$this->editors['xdebug'] = function ($file, $line) {
|
||||
return str_replace(['%f', '%l'], [$file, $line], ini_get('xdebug.file_link_format'));
|
||||
};
|
||||
|
||||
// If xdebug is available, use it as default editor.
|
||||
$this->setEditor('xdebug');
|
||||
}
|
||||
|
||||
// Add the default, local resource search path:
|
||||
|
||||
Reference in New Issue
Block a user