From c534f8cc79680e63a418760aa000c5bb7e3dfb0b Mon Sep 17 00:00:00 2001 From: Ondrej Mirtes Date: Fri, 17 Nov 2023 09:47:30 +0100 Subject: [PATCH] Note about Xdebug with `--debug` --- src/Command/CommandHelper.php | 9 +++++++++ 1 file changed, 9 insertions(+) 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) {