diff --git a/src/Command/CommandHelper.php b/src/Command/CommandHelper.php index 7f0e771fa5..d78357577c 100644 --- a/src/Command/CommandHelper.php +++ b/src/Command/CommandHelper.php @@ -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) {