Skip to content

Commit

Permalink
Note about Xdebug with --debug
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Nov 17, 2023
1 parent 67893d4 commit c534f8c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Command/CommandHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,15 @@ public static function begin(
}
} elseif (XdebugHandler::isXdebugActive()) {
$errorOutput->getStyle()->note('The Xdebug PHP extension is active, but "--xdebug" is not used. This may slow down performance and the process will not halt at breakpoints.');
} elseif ($debugEnabled) {
$v = XdebugHandler::getSkippedVersion();
if ($v !== '') {
$errorOutput->getStyle()->note(
"The Xdebug PHP extension is active, but \"--xdebug\" is not used.\n" .
"The process was restarted and it will not halt at breakpoints.\n" .
'Use "--xdebug" if you want to halt at breakpoints.',
);
}
}

if ($memoryLimit !== null) {
Expand Down

0 comments on commit c534f8c

Please sign in to comment.