Skip to content

Commit

Permalink
Add some details for clockwork profiler to work (#2465)
Browse files Browse the repository at this point in the history
  • Loading branch information
ildyria authored Jun 18, 2024
1 parent 2593f3b commit d0f793c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/Actions/Diagnostics/Pipes/Checks/IniSettingsCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,13 @@ public function handle(array &$data, \Closure $next): array
// @codeCoverageIgnoreEnd
}

if (extension_loaded('xdebug')) {
// @codeCoverageIgnoreStart
$data[] = 'Info: xdebug mode:' . ini_get('xdebug.mode');
$data[] = 'Info: xdebug start_with_request:' . ini_get('xdebug.start_with_request');
// @codeCoverageIgnoreEnd
}

if (ini_get('assert.exception') !== '1') {
// @codeCoverageIgnoreStart
$data[] = 'Warning: assert.exception is set to false. Lychee assumes that failing assertions throw proper exceptions.';
Expand Down

0 comments on commit d0f793c

Please sign in to comment.