Xdebug connection was reset in XAMPP - php

I am attempting to get Xdebug to run in VSCode on Windows. I just installed Magento 2 framework in it's own directory in xampp/htdocs/magento.
Xdebug works fine within the /dashboard directory, but that's it. If I attempt to listen for Xdebug in any other directory no breakpoint will be hit and the browser will display the following error:
'This site can't be reached. Connection was reset.'
I've been searching for many hours for a solution but I was unable to get it to work.
This is the relevant launch.json configuration for VSCode:
"version": "0.2.0",
"configurations": [
{
"name": "Listen for Xdebug",
"type": "php",
"request": "launch",
"port": 9003,
"runtimeExecutable": "c:\\xampp\\php\\php.exe"
}
This is the relevant php.ini configuration:
xdebug.mode = debug
xdebug.start_with_request = yes
zend_extension = "C:\xampp\php\ext\php_xdebug.dll"
xdebug.client_host=localhost
xdebug.idekey = VSCODE
xdebug.log="C:\xampp\php\ext\xdebug.log"
The Xdebug log displays no error, here is the latest entry:
[14196] Log opened at 2021-10-14 12:35:22.508436
[14196] [Step Debug] INFO: Connecting to configured address/port: localhost:9003.
[14196] [Step Debug] INFO: Connected to debugging client: localhost:9003 (through xdebug.client_host/xdebug.client_port). :-)
[14196] [Step Debug] -> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" fileuri="file:///C:/xampp/htdocs/magento/index.php" language="PHP" xdebug:language_version="7.3.31" protocol_version="1.0" appid="14196" idekey="VSCODE"><engine version="3.1.0"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[https://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2021 by Derick Rethans]]></copyright></init>
[14196] [Step Debug] <- feature_set -i 1 -n resolved_breakpoints -v 1
[14196] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="1" feature="resolved_breakpoints" success="1"></response>
[14196] [Step Debug] <- feature_set -i 2 -n notify_ok -v 1
[14196] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="2" feature="notify_ok" success="1"></response>
[14196] [Step Debug] <- feature_set -i 3 -n extended_properties -v 1
[14196] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="3" feature="extended_properties" success="1"></response>
[14196] [Step Debug] <- breakpoint_set -i 4 -t line -f file:///c:/xampp/htdocs/magento/app/code/Iksula/Appapi/Model/Home/Home.php -n 450
[14196] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="4" id="141960001" resolved="unresolved"></response>
[14196] [Step Debug] <- breakpoint_set -i 5 -t line -f file:///c:/xampp/htdocs/dashboard/index.php -n 3
[14196] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="5" id="141960002" resolved="unresolved"></response>
[14196] [Step Debug] <- run -i 6
Also in the /apache/logs/error.log there is nothing I could spot wrong
[Thu Oct 14 14:35:22.145361 2021] [core:notice] [pid 32252:tid 600] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Thu Oct 14 14:35:22.147277 2021] [mpm_winnt:notice] [pid 32252:tid 600] AH00418: Parent: Created child process 31772
[Thu Oct 14 14:35:22.501540 2021] [mpm_winnt:notice] [pid 31772:tid 656] AH00354: Child: Starting 150 worker threads.
[Thu Oct 14 14:35:23.239695 2021] [mpm_winnt:notice] [pid 32252:tid 600] AH00428: Parent: child process 31772 exited with status 3221225477 -- Restarting.
[Thu Oct 14 14:35:23.309464 2021] [mpm_winnt:notice] [pid 32252:tid 600] AH00455: Apache/2.4.51 (Win64) OpenSSL/1.1.1l PHP/7.3.31 configured -- resuming normal operations
[Thu Oct 14 14:35:23.309464 2021] [mpm_winnt:notice] [pid 32252:tid 600] AH00456: Apache Lounge VC15 Server built: Oct 8 2021 10:03:59
[Thu Oct 14 14:35:23.309464 2021] [core:notice] [pid 32252:tid 600] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Thu Oct 14 14:35:23.312450 2021] [mpm_winnt:notice] [pid 32252:tid 600] AH00418: Parent: Created child process 29828
[Thu Oct 14 14:35:23.682622 2021] [mpm_winnt:notice] [pid 29828:tid 660] AH00354: Child: Starting 150 worker threads.
It is unlikely that there is anything wrong with the configuration since my breakpoints DO get hit in /dashboard/index.php and the page loads accordingly, however if I do /magento/index.php the page does not even load.
Is there anything I am missing?

Related

Xdebug connected to debugging client, but not working

Xdebug logs are saying that he is able to connect to PhpStorm, but PhpStorm cant run the debug process.
[23] Log opened at 2023-01-11 21:16:29.141347
[23] [Step Debug] INFO: Connecting to configured address/port: host.docker.internal:9003.
[23] [Step Debug] INFO: Connected to debugging client: host.docker.internal:9003 (through xdebug.client_host/xdebug.client_port). :-)
[23] [Step Debug] -> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" fileuri="file:///legacy/public/index.php" language="PHP" xdebug:language_version="8.1.7" protocol_version="1.0" appid="23"><engine version="3.1.0"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[https://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2021 by Derick Rethans]]></copyright></init>
[20] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" status="stopping" reason="ok"></response>
[20] Log closed at 2023-01-11 21:16:29.451767
Application is in monorepo in folder legacy/, run by docker via 8000 port.
PHP 8.1.7 (cli) (built: Jun 9 2022 23:29:02) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.7, Copyright (c) Zend Technologies
with Xdebug v3.1.0, Copyright (c) 2002-2021, by Derick Rethans

Getting Xdebug 3 in PhpStorm working with MAMP Pro 6 and Mac M1

I'm using PhpStorm with MAMP Pro 6 on a Mac M1 and I can't get Xdebug to run.
It don't stop on breakpoints outside the index.php in the project root.
This is the Xdebug part of php.ini
MAMP_Xdebug_MAMPzend_extension="/Applications/MAMP/bin/php/php7.4.21/lib/php/extensions/no-debug-non-zts-20190902/xdebug.so"
xdebug.mode=debug,trace
xdebug.client_host=127.0.0.1
I'm calling the page with https: ... :8890
The validation is only working on http :8888
If I try to use "https" I got this:
Specified URL is not reachable, caused by: 'No subject alternative DNS name matching om-base-ob found'
Could that be hint? Or is the problem a missing mapping, which I don't understand!
Or the
I have no clue where to start, to solve the problem. Hope someone can bring me on the right track. I've attached all config screens. From my point of view this "zero-debug thing" should working with this settings.
[36018] [Step Debug] <- breakpoint_set -i 14 -t line -f file:///Users/myUser/Projects/myClient/www/test/application/controllers/admin/dataentry.php -n 759
[36018] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="14" id="360180155"></response>
[36018] [Step Debug] <- breakpoint_set -i 15 -t line -f file:///Users/myUser/Projects/myClient/www/test/application/controllers/admin/dataentry.php -n 2040
[36018] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="15" id="360180156"></response>
[36018] [Step Debug] <- breakpoint_set -i 16 -t line -f file:///Users/myUser/Projects/myClient/www/test/application/helpers/remotecontrol/remotecontrol_handle.php -n 2710
[36018] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="16" id="360180157"></response>
[36018] [Step Debug] <- breakpoint_set -i 17 -t line -f file:///Users/myUser/Projects/myClient/www/test/application/helpers/remotecontrol/remotecontrol_handle.php -n 2709
[36018] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="17" id="360180158"></response>
[36018] [Step Debug] <- breakpoint_set -i 18 -t line -f file:///Users/myUser/Projects/myClient/www/test/application/controllers/admin/dataentry.php -n 2025
[36018] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="18" id="360180159"></response>
[36018] [Step Debug] <- breakpoint_set -i 19 -t line -f file:///Users/myUser/Projects/myClient/www/test/framework/yiilite.php -n 5831
[36018] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="19" id="360180160"></response>
[36018] [Step Debug] <- breakpoint_set -i 20 -t line -f file:///Users/myUser/Projects/myClient/www/test/application/controllers/admin/dataentry.php -n 742
[36018] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="20" id="360180161"></response>
[36018] [Step Debug] <- breakpoint_set -i 21 -t line -f file:///Users/myUser/Projects/myClient/www/test/application/controllers/admin/dataentry.php -n 744
[36018] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="21" id="360180162"></response>
[36018] [Step Debug] <- breakpoint_set -i 22 -t line -f file:///Users/myUser/Projects/myClient/www/test/application/controllers/admin/dataentry.php -n 1371
[36018] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="22" id="360180163"></response>
[36018] [Step Debug] <- breakpoint_set -i 23 -t line -f file:///Users/myUser/Projects/myClient/www/test/application/controllers/admin/dataentry.php -n 1878
[36018] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="23" id="360180164"></response>
[36018] [Step Debug] <- breakpoint_set -i 24 -t line -f file:///Users/myUser/Projects/myClient/www/test/application/controllers/admin/dataentry.php -n 2028
[36018] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="24" id="360180165"></response>
[36018] [Step Debug] <- breakpoint_set -i 25 -t line -f file:///Users/myUser/Projects/myClient/www/test/application/controllers/admin/dataentry.php -n 1377
[36018] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="25" id="360180166"></response>
[36018] [Step Debug] <- breakpoint_set -i 26 -t line -f file:///Users/myUser/Projects/myClient/www/test/application/controllers/admin/dataentry.php -n 1887
[36018] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="26" id="360180167"></response>
[36018] [Step Debug] <- breakpoint_set -i 27 -t line -f file:///Users/myUser/Projects/myClient/www/test/application/controllers/admin/dataentry.php -n 1376
[36018] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="27" id="360180168"></response>
[36018] [Step Debug] <- stack_get -i 28
[36018] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="stack_get" transaction_id="28"><stack where="{main}" level="0" type="file" filename="file:///Users/myUser/Projects/myClient/www/test/index.php" lineno="12"></stack></response>
[36018] [Step Debug] <- run -i 29
[36018] [Step Debug] -> <stream xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" type="stdout" encoding="base64"><![CDATA[eyJncm91cHMiOlt7ImdpZCI6IjY5MiIsInNpZCI6IjQyNDg3NyIsImdyb3VwX25hbWUiOiJNeSBmaXJzdCBxdWVzdGlvbiBncm91cCIsImdyb3VwX29yZGVyIjoiMSIsImRlc2NyaXB0aW9uIjoiIiwibGFuZ3VhZ2UiOiJlbiIsInJhbmRvbWl6YXRpb25fZ3JvdXAiOiIiLCJncmVsZXZhbmNlIjoiMSIsInBhZ2VCcmVhayI6bnVsbCwibGluayI6IlwvaW5kZXgucGhwXC9hZG1pblwvcXVlc3Rpb25ncm91cHNcL3NhXC92aWV3XC9zdXJ2ZXlpZFwvNDI0ODc3XC9naWRcLzY5MiIsInF1ZXN0aW9ucyI6W3si
[36018] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="run" transaction_id="29" status="stopping" reason="ok"></response>
[36018] [Step Debug] <- detach -i 30
[36018] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="detach" transaction_id="30" status="stopping" reason="ok"></response>
[36018] Log closed at 2022-01-28 08:00:49.299638
[36021] [Step Debug] <- breakpoint_set -i 14 -t line -f file:///Users/myUser/Projects/myClient/www/test/application/controllers/admin/dataentry.php -n 759
[36021] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="14" id="360210029"></response>
[36021] [Step Debug] <- breakpoint_set -i 15 -t line -f file:///Users/myUser/Projects/myClient/www/test/application/controllers/admin/dataentry.php -n 2040
[36021] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="15" id="360210030"></response>
[36021] [Step Debug] <- breakpoint_set -i 16 -t line -f file:///Users/myUser/Projects/myClient/www/test/application/helpers/remotecontrol/remotecontrol_handle.php -n 2710
[36021] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="16" id="360210031"></response>
[36021] [Step Debug] <- breakpoint_set -i 17 -t line -f file:///Users/myUser/Projects/myClient/www/test/application/helpers/remotecontrol/remotecontrol_handle.php -n 2709
[36021] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="17" id="360210032"></response>
[36021] [Step Debug] <- breakpoint_set -i 18 -t line -f file:///Users/myUser/Projects/myClient/www/test/application/controllers/admin/dataentry.php -n 2025
[36021] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="18" id="360210033"></response>
[36021] [Step Debug] <- breakpoint_set -i 19 -t line -f file:///Users/myUser/Projects/myClient/www/test/framework/yiilite.php -n 5831
[36021] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="19" id="360210034"></response>
[36021] [Step Debug] <- breakpoint_set -i 20 -t line -f file:///Users/myUser/Projects/myClient/www/test/application/controllers/admin/dataentry.php -n 742
[36021] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="20" id="360210035"></response>
[36021] [Step Debug] <- breakpoint_set -i 21 -t line -f file:///Users/myUser/Projects/myClient/www/test/application/controllers/admin/dataentry.php -n 744
[36021] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="21" id="360210036"></response>
[36021] [Step Debug] <- breakpoint_set -i 22 -t line -f file:///Users/myUser/Projects/myClient/www/test/application/controllers/admin/dataentry.php -n 1371
[36021] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="22" id="360210037"></response>
[36021] [Step Debug] <- breakpoint_set -i 23 -t line -f file:///Users/myUser/Projects/myClient/www/test/application/controllers/admin/dataentry.php -n 1878
[36021] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="23" id="360210038"></response>
[36021] [Step Debug] <- breakpoint_set -i 24 -t line -f file:///Users/myUser/Projects/myClient/www/test/application/controllers/admin/dataentry.php -n 2028
[36021] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="24" id="360210039"></response>
[36021] [Step Debug] <- breakpoint_set -i 25 -t line -f file:///Users/myUser/Projects/myClient/www/test/application/controllers/admin/dataentry.php -n 1377
[36021] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="25" id="360210040"></response>
[36021] [Step Debug] <- breakpoint_set -i 26 -t line -f file:///Users/myUser/Projects/myClient/www/test/application/controllers/admin/dataentry.php -n 1887
[36021] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="26" id="360210041"></response>
[36021] [Step Debug] <- breakpoint_set -i 27 -t line -f file:///Users/myUser/Projects/myClient/www/test/application/controllers/admin/dataentry.php -n 1376
[36021] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="27" id="360210042"></response>
[36021] [Step Debug] <- stack_get -i 28
[36021] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="stack_get" transaction_id="28"><stack where="{main}" level="0" type="file" filename="file:///Users/myUser/Projects/myClient/www/test/index.php" lineno="12"></stack></response>
[36021] [Step Debug] <- run -i 29
[36021] [Step Debug] -> <stream xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" type="stdout" encoding="base64"><![CDATA[eyJtZW51ZXMiOnsiMSI6eyJpZCI6IjEiLCJ0aXRsZSI6IlN1cnZleSBzZXR0aW5ncyIsIm5hbWUiOiJzZXR0aW5ncyIsIm9yZGVyaW5nIjoiMSIsImxldmVsIjoiMCIsImRlc2NyaXB0aW9uIjoiU3VydmV5IHNldHRpbmdzIiwiZW50cmllcyI6eyI1NSI6eyJpZCI6IjU1IiwibWVudV9pZCI6IjEiLCJ1c2VyX2lkIjpudWxsLCJvcmRlcmluZyI6IjEiLCJuYW1lIjoib3ZlcnZpZXciLCJ0aXRsZSI6IlN1cnZleSBvdmVydmlldyIsIm1lbnVfdGl0bGUiOiJPdmVydmlldyIsIm1lbnVfZGVzY3JpcHRpb24i
[36021] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="run" transaction_id="29" status="stopping" reason="ok"></response>
[36021] [Step Debug] <- detach -i 30
[36021] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="detach" transaction_id="30" status="stopping" reason="ok"></response>
[36021] Log closed at 2022-01-28 08:00:50.039697
[36019] [Step Debug] <- breakpoint_set -i 14 -t line -f file:///Users/myUser/Projects/myClient/www/test/application/controllers/admin/dataentry.php -n 759
[36019] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="14" id="360190057"></response>
[36019] [Step Debug] <- breakpoint_set -i 15 -t line -f file:///Users/myUser/Projects/myClient/www/test/application/controllers/admin/dataentry.php -n 2040
[36019] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="15" id="360190058"></response>
[36019] [Step Debug] <- breakpoint_set -i 16 -t line -f file:///Users/myUser/Projects/myClient/www/test/application/helpers/remotecontrol/remotecontrol_handle.php -n 2710
[36019] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="16" id="360190059"></response>
[36019] [Step Debug] <- breakpoint_set -i 17 -t line -f file:///Users/myUser/Projects/myClient/www/test/application/helpers/remotecontrol/remotecontrol_handle.php -n 2709
[36019] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="17" id="360190060"></response>
[36019] [Step Debug] <- breakpoint_set -i 18 -t line -f file:///Users/myUser/Projects/myClient/www/test/application/controllers/admin/dataentry.php -n 2025
[36019] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="18" id="360190061"></response>
[36019] [Step Debug] <- breakpoint_set -i 19 -t line -f file:///Users/myUser/Projects/myClient/www/test/framework/yiilite.php -n 5831
[36019] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="19" id="360190062"></response>
[36019] [Step Debug] <- breakpoint_set -i 20 -t line -f file:///Users/myUser/Projects/myClient/www/test/application/controllers/admin/dataentry.php -n 742
[36019] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="20" id="360190063"></response>
[36019] [Step Debug] <- breakpoint_set -i 21 -t line -f file:///Users/myUser/Projects/myClient/www/test/application/controllers/admin/dataentry.php -n 744
[36019] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="21" id="360190064"></response>
[36019] [Step Debug] <- breakpoint_set -i 22 -t line -f file:///Users/myUser/Projects/myClient/www/test/application/controllers/admin/dataentry.php -n 1371
[36019] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="22" id="360190065"></response>
[36019] [Step Debug] <- breakpoint_set -i 23 -t line -f file:///Users/myUser/Projects/myClient/www/test/application/controllers/admin/dataentry.php -n 1878
[36019] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="23" id="360190066"></response>
[36019] [Step Debug] <- breakpoint_set -i 24 -t line -f file:///Users/myUser/Projects/myClient/www/test/application/controllers/admin/dataentry.php -n 2028
[36019] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="24" id="360190067"></response>
[36019] [Step Debug] <- breakpoint_set -i 25 -t line -f file:///Users/myUser/Projects/myClient/www/test/application/controllers/admin/dataentry.php -n 1377
[36019] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="25" id="360190068"></response>
[36019] [Step Debug] <- breakpoint_set -i 26 -t line -f file:///Users/myUser/Projects/myClient/www/test/application/controllers/admin/dataentry.php -n 1887
[36019] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="26" id="360190069"></response>
[36019] [Step Debug] <- breakpoint_set -i 27 -t line -f file:///Users/myUser/Projects/myClient/www/test/application/controllers/admin/dataentry.php -n 1376
[36019] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="27" id="360190070"></response>
[36019] [Step Debug] <- stack_get -i 28
[36019] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="stack_get" transaction_id="28"><stack where="{main}" level="0" type="file" filename="file:///Users/myUser/Projects/myClient/www/test/index.php" lineno="12"></stack></response>
[36019] [Step Debug] <- run -i 29
[36019] [Step Debug] -> <stream xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" type="stdout" encoding="base64"><![CDATA[eyJtZW51ZXMiOnsiMSI6eyJpZCI6IjEiLCJ0aXRsZSI6IlN1cnZleSBzZXR0aW5ncyIsIm5hbWUiOiJzZXR0aW5ncyIsIm9yZGVyaW5nIjoiMSIsImxldmVsIjoiMCIsImRlc2NyaXB0aW9uIjoiU3VydmV5IHNldHRpbmdzIiwiZW50cmllcyI6eyI1NiI6eyJpZCI6IjU2IiwibWVudV9pZCI6IjEiLCJ1c2VyX2lkIjpudWxsLCJvcmRlcmluZyI6IjIiLCJuYW1lIjoiZ2VuZXJhbHNldHRpbmdzIiwidGl0bGUiOiJHZW5lcmFsIHN1cnZleSBzZXR0aW5ncyIsIm1lbnVfdGl0bGUiOiJHZW5lcmFsIHNldHRp
[36019] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="run" transaction_id="29" status="stopping" reason="ok"></response>
[36019] [Step Debug] <- detach -i 30
[36019] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="detach" transaction_id="30" status="stopping" reason="ok"></response>
[36019] Log closed at 2022-01-28 08:00:50.778079

'error evaluating code' when debugging php with Xdebug in Visual Studio Code

I am trying to debug PHP with Xdebug in listening mode in VS Code.
For some commands I receive the unspecific error evaluating code, which tells me that something went wrong, but I don't know what. For example, mkdir($dir_path, 711, true); sometimes returns this error (when apparently something went wrong), while file_exists($dir_path); works (returning true or false). I presume this is a case of permission denied for mkdir(), but I would expect the error message to tell me about it.
Another example producing the error is by echo "str";.
There has been a similar issue opened up on this, but I don't understand the answer. Even when using semicolons at the end, I receive the error. And mkdir() should return true or false.
Version information:
PHP Version 7.2.34-26+ubuntu20.04.1+deb.sury.org+1
Visual Studio Code 1.6.2
Xdebug 3.1.1
I have no variables on the watch list, as suggested here and here.
Edit
Here the Xdebug log (excerpt):
[855784] [Step Debug] -> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" fileuri="dbgp://stdin" language="PHP" xdebug:language_version="7.2.34-26+ubuntu20.04.1+deb.sury.org+1" protocol_version="1.0" appid="855784"><engine version="3.1.1"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[https://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2021 by Derick Rethans]]></copyright></init>
[855784] [Step Debug] <- feature_set -i 1 -n resolved_breakpoints -v 1
[855784] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="1" feature="resolved_breakpoints" success="1"></response>
[855784] [Step Debug] <- feature_set -i 2 -n notify_ok -v 1
[855784] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="2" feature="notify_ok" success="1"></response>
[855784] [Step Debug] <- feature_set -i 3 -n extended_properties -v 1
[855784] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="3" feature="extended_properties" success="1"></response>
[855784] [Step Debug] <- breakpoint_set -i 6 -t line -f file:///home/myname/path/app/helpers/ImageHelper.php -n 471
[855784] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="6" id="693520003" resolved="unresolved"></response>
[855784] [Step Debug] <- breakpoint_set -i 7 -t line -f file:///home/myname/path/app/helpers/ImageHelper.php -n 579
[855784] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="7" id="693520004" resolved="unresolved"></response>
[855784] [Step Debug] <- run -i 8
[855784] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="run" transaction_id="8" status="stopping" reason="ok"></response>
[855784] [Step Debug] <- stop -i 9
[855784] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="stop" transaction_id="9" status="stopped" reason="ok"></response>

PhpStorm Xdebug not working in WSL when running files in CLI

I am running Ubuntu 20.04 in WSL2. My Xdebug is configured and triggers PhpStorm breakpoints when browsing the local dev site on chrome, just as it should.
However when running PHP scripts through CLI (php test.php) PhpStorm notices the connection and halts but there is no breakpoints, I cannot interact, nothing happens.
Xdebug Settings:
zend_extension = /usr/lib/php/20190902/xdebug.so
xdebug.log = "/var/www/html/test.log"
xdebug.mode=debug
xdebug.client_host=172.28.192.1
xdebug.client_port=9000
;xdebug.idekey=PHPSTORM
xdebug.start_with_request=yes
xdebug.log_level = 7
Output of Xdebug log when trying to run script in CLI.
[14214] Log opened at 2021-05-15 00:41:14.790013
[14214] [Step Debug] INFO: Connecting to configured address/port: 172.28.192.1:9000.
[14214] [Step Debug] INFO: Connected to debugging client: 172.28.192.1:9000 (through xdebug.client_host/xdebug.client_port). :-)
[14214] [Step Debug] -> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" fileuri="file:///var/www/dev_test/test/test.php" language="PHP" xdebug:language_version="7.4.3" protocol_version="1.0" appid="14214"><engine version="3.0.4"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[https://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2021 by Derick Rethans]]></copyright></init>
[14214] [Step Debug] <- feature_set -i 1 -n show_hidden -v 1
[14214] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="1" feature="show_hidden" success="1"></response>
[14214] [Step Debug] <- feature_set -i 2 -n max_depth -v 1
[14214] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="2" feature="max_depth" success="1"></response>
[14214] [Step Debug] <- feature_set -i 3 -n max_children -v 100
[14214] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="3" feature="max_children" success="1"></response>
[14214] [Step Debug] <- feature_set -i 4 -n extended_properties -v 1
[14214] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="4" feature="extended_properties" success="1"></response>
[14214] [Step Debug] <- feature_set -i 5 -n notify_ok -v 1
[14214] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="5" feature="notify_ok" success="1"></response>
[14214] [Step Debug] <- feature_set -i 6 -n resolved_breakpoints -v 1
[14214] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="6" feature="resolved_breakpoints" success="1"></response>
[14214] [Step Debug] <- stdout -i 7 -c 1
[14214] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="stdout" transaction_id="7" success="1"></response>
[14214] [Step Debug] <- status -i 8
[14214] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="status" transaction_id="8" status="starting" reason="ok"></response>
[14214] [Step Debug] <- step_into -i 9
[14214] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="step_into" transaction_id="9" status="break" reason="ok"><xdebug:message filename="file:///var/www/dev_test/test/test.php" lineno="2"></xdebug:message></response>
[14214] [Step Debug] <- eval -i 10 -- aXNzZXQoJF9TRVJWRVJbJ1BIUF9JREVfQ09ORklHJ10p
[14214] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="eval" transaction_id="10"><property type="bool"><![CDATA[0]]></property></response>
[14214] [Step Debug] <- eval -i 11 -- aXNzZXQoJF9TRVJWRVJbJ1NFUlZFUl9OQU1FJ10p
[14214] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="eval" transaction_id="11"><property type="bool"><![CDATA[0]]></property></response>
[14214] [Step Debug] <- eval -i 12 -- aXNzZXQoJF9TRVJWRVJbJ1NTSF9DT05ORUNUSU9OJ10p
[14214] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="eval" transaction_id="12"><property type="bool"><![CDATA[0]]></property></response>
[14214] [Step Debug] <- eval -i 13 -- aXNzZXQoJF9TRVJWRVJbJ1NFUlZFUl9BRERSJ10p
[14214] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="eval" transaction_id="13"><property type="bool"><![CDATA[0]]></property></response>
[14214] [Step Debug] <- breakpoint_set -i 14 -t line -f file:////wsl$/Ubuntu-20.04/var/www/dev_test/test/test.php -n 10
[14214] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="14" id="142140001" resolved="unresolved"></response>
[14214] [Step Debug] <- stack_get -i 15
[14214] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="stack_get" transaction_id="15"><stack where="{main}" level="0" type="file" filename="file:///var/www/dev_test/test/test.php" lineno="2"></stack></response>
[14214] [Step Debug] <- stack_get -i 16
[14214] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="stack_get" transaction_id="16"><stack where="{main}" level="0" type="file" filename="file:///var/www/dev_test/test/test.php" lineno="2"></stack></response>
[14214] [Step Debug] <- context_names -i 17
[14214] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="context_names" transaction_id="17"><context name="Locals" id="0"></context><context name="Superglobals" id="1"></context><context name="User defined constants" id="2"></context></response>
[14214] [Step Debug] <- eval -i 18 -- JEdMT0JBTFNbJ0lERV9FVkFMX0NBQ0hFJ11bJzJlN2M3ZjYzLTFjNDEtNDgwMS04ZDA2LWMyYzIwZGQ4MzZhNCddPSR1X29iag==
[14214] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="eval" transaction_id="18"><property type="null"></property></response>
[14214] [Step Debug] <- context_get -i 19 -d 0 -c 0
[14214] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="context_get" transaction_id="19" context="0"><property name="$IDE_EVAL_CACHE" fullname="$IDE_EVAL_CACHE" type="array" children="1" numchildren="1" page="0" pagesize="100"><property name="2e7c7f63-1c41-4801-8d06-c2c20dd836a4" fullname="$IDE_EVAL_CACHE["2e7c7f63-1c41-4801-8d06-c2c20dd836a4"]" type="null"></property></property><property name="$db" fullname="$db" type="uninitialized"></property><prope
[14214] [Step Debug] <- context_get -i 20 -d 0 -c 1
[14214] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="context_get" transaction_id="20" context="1"><property name="$_COOKIE" fullname="$_COOKIE" type="array" children="0" numchildren="0" page="0" pagesize="100"></property><property name="$_ENV" fullname="$_ENV" type="array" children="0" numchildren="0" page="0" pagesize="100"></property><property name="$_FILES" fullname="$_FILES" type="array" children="0" numchildren="0" page="0" pagesize="100"></property><pro
[14214] [Step Debug] <- run -i 21
[14214] [Step Debug] -> <stream xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" type="stdout" encoding="base64"><![CDATA[CkRlYnVnIEJ1ZmZlcgo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ck1lbW9yeSBVc2FnZTogNDY3ODY0MCBCdWZmZXIgU2l6ZTogNwotLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tCkRFQlVHIFtMMDM5OV0gWzEzNTEybXNdOiBHTE9CQUw6IFVSSTogdGVzdC5waHAgSVAgQWRkcmVzczogCkRFQlVHIFtMMDQwMF0gWzEzNTEy
[14214] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="run" transaction_id="21" status="stopping" reason="ok"></response>
[14214] [Step Debug] <- detach -i 22
[14214] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="detach" transaction_id="22" status="stopping" reason="ok"></response>
[14214] Log closed at 2021-05-15 00:41:28.327542

Xdebug stopped working on PHP tracing on Windows 10

I am completely new on PHP and Xdebug. I have installed XAMPP on Windows 10 and I have a running application on PHP.
So I wanted to trace the application on Visual Studio Code to understand it, I used the Xdebug. I did the following:
I download the appropriate php-xdebug.dll (according to PHP version, on xdebug.org/wizard) and place it on PHP directory of XAMPP.
I installed the PHP debug extension and added these lines:
xdebug.mode = debug
xdebug.start_with_request = yes
xdebug.client_port = 9000
Add this line to json:
"runtimeExecutable": "C:\\Xampp\\PHP\\php.exe"
Restart the Apache service in XAMPP.
Now I started the application and put some breakpoint to trace the application. It worked fine for about 4 or 5 hours, without any problem. But after that it stop working.
When I put the breakpoint it enters the breakpoint. When I press "press into" button, nothing happens and it seems Xdebug not working.
How can I check what is the problem with Wdebug?
EDIT:
This is what I found. This is a very simple code which I want to trace:
<?php
$a=100;
$b=200;
echo $a."<br/>";
echo $b."<br/>";
echo $a+$b;
If I place in the root of htdocs, the Xdebug won't work any more, but if I put in a subdirectory inside htdocs then the debug works fine.
This the result in Xdebug log file:
[8668] Log opened at 2262-04-09 09:08:59.927045
[8668] [Step Debug] INFO: Connecting to configured address/port: localhost:9000.
[8668] [Step Debug] INFO: Connected to debugging client: localhost:9000 (through xdebug.client_host/xdebug.client_port). :-)
[8668] [Step Debug] -> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" fileuri="file:///C:/xampp/htdocs/index.php" language="PHP" xdebug:language_version="7.2.34" protocol_version="1.0" appid="8668"><engine version="3.0.4"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[https://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2021 by Derick Rethans]]></copyright></init>
[8668] [Step Debug] <- breakpoint_list -i 1
[8668] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_list" transaction_id="1"></response>
[8668] [Step Debug] <- breakpoint_list -i 2
[8668] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_list" transaction_id="2"></response>
[8668] [Step Debug] <- breakpoint_list -i 3
[8668] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_list" transaction_id="3"></response>
[8668] [Step Debug] <- breakpoint_list -i 4
[8668] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_list" transaction_id="4"></response>
[8668] [Step Debug] <- breakpoint_list -i 5
[8668] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_list" transaction_id="5"></response>
[8668] [Step Debug] <- breakpoint_list -i 6
[8668] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_list" transaction_id="6"></response>
[8668] [Step Debug] <- breakpoint_set -i 7 -t line -f file:///c:/xampp/htdocs/test/1.php -n 3
[8668] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="7" id="86680001"></response>
[8668] [Step Debug] <- breakpoint_set -i 8 -t line -f file:///c:/xampp/htdocs/1.php -n 3
[8668] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="8" id="86680002"></response>
[8668] [Step Debug] <- breakpoint_set -i 9 -t line -f file:///c:/xampp/htdocs/app/hmi/API/addline.php -n 16
[8668] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="9" id="86680003"></response>
[8668] [Step Debug] <- breakpoint_set -i 10 -t line -f file:///c:/xampp/htdocs/app/hmi/API/addorderstation.php -n 17
[8668] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="10" id="86680004"></response>
[8668] [Step Debug] <- breakpoint_set -i 11 -t line -f file:///c:/xampp/htdocs/app/hmi/API/addstation.php -n 14
[8668] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="11" id="86680005"></response>
[8668] [Step Debug] <- breakpoint_set -i 12 -t line -f file:///c:/xampp/htdocs/index.php -n 3
[8668] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="12" id="86680006"></response>
[8668] [Step Debug] <- breakpoint_set -i 13 -t line -f file:///c:/xampp/htdocs/index.php -n 17
[8668] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="13" id="86680007"></response>
[8668] [Step Debug] <- breakpoint_list -i 14
[8668] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_list" transaction_id="14"><breakpoint type="line" filename="file:///C:/xampp/htdocs/app/hmi/API/addstation.php" lineno="14" state="enabled" hit_count="0" hit_value="0" id="86680005"></breakpoint><breakpoint type="line" filename="file:///C:/xampp/htdocs/app/hmi/API/addorderstation.php" lineno="17" state="enabled" hit_count="0" hit_value="0" id="86680004"></breakpoint><breakpoint type="line" filena
[8668] [Step Debug] <- breakpoint_list -i 15
[8668] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_list" transaction_id="15"><breakpoint type="line" filename="file:///C:/xampp/htdocs/app/hmi/API/addstation.php" lineno="14" state="enabled" hit_count="0" hit_value="0" id="86680005"></breakpoint><breakpoint type="line" filename="file:///C:/xampp/htdocs/app/hmi/API/addorderstation.php" lineno="17" state="enabled" hit_count="0" hit_value="0" id="86680004"></breakpoint><breakpoint type="line" filena
[8668] [Step Debug] <- breakpoint_set -i 16 -t exception -x *
[8668] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="16" id="86680008"></response>
[8668] [Step Debug] <- run -i 17
[8668] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="run" transaction_id="17" status="break" reason="ok"><xdebug:message filename="file:///C:/xampp/htdocs/index.php" lineno="3"></xdebug:message></response>
[8668] [Step Debug] <- stack_get -i 18
[8668] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="stack_get" transaction_id="18"><stack where="{main}" level="0" type="file" filename="file:///C:/xampp/htdocs/index.php" lineno="3"></stack></response>
[8668] [Step Debug] <- eval -i 19 -- KCRh
[8668] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="eval" transaction_id="19" status="break" reason="ok"><error code="206"><message><![CDATA[error evaluating code]]></message></error></response>
[8668] [Step Debug] <- eval -i 20 -- Y2hyKCRhKQ==
[8668] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="eval" transaction_id="20"><property type="string" size="1" encoding="base64"><![CDATA[AA==]]></property></response>
[8668] [Step Debug] <- eval -i 21 -- JGE=
[8668] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="eval" transaction_id="21"><property type="null"></property></response>
[8668] [Step Debug] <- eval -i 22 -- JF9SRVFVRVNUWydQQVJBTVMnXQ==
[8668] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="eval" transaction_id="22"><property type="null"></property></response>
[8668] [Step Debug] <- eval -i 23 -- JHBhcmFtcw==
[8668] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="eval" transaction_id="23"><property type="null"></property></response>
[8668] [Step Debug] <- context_names -i 24 -d 0
[8668] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="context_names" transaction_id="24"><context name="Locals" id="0"></context><context name="Superglobals" id="1"></context><context name="User defined constants" id="2"></context></response>
[8668] [Step Debug] <- context_get -i 25 -d 0 -c 0
[8668] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="context_get" transaction_id="25" context="0"><property name="$a" fullname="$a" type="uninitialized"></property><property name="$b" fullname="$b" type="uninitialized"></property></response>
[8668] [Step Debug] <- step_over -i 26
[8668] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="step_over" transaction_id="26" status="stopping" reason="ok"></response>
[8668] [Step Debug] <- stop -i 27
[8668] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="stop" transaction_id="27" status="stopped" reason="ok"></response>
[8668] Log closed at 2262-04-09 09:08:59.927045
You can check what Xdebug does, by creating a log with the php.ini setting xdebug.log=c:\temp\xdebug.log—you might have to change the path if the web server or PHP can't write to that. The log will list all debug connection attempts, list potential connection issues, and if a connection is made, the communication. You can check whether the fileuri XML attribute of the <init tag matches what is set by the breakpoint_set commands that the IDE ought to send.
The only I could do , I changed the website Folder from htdocs to htdocs/Projects. and everything worked fine after that. I couldn't find the reason

Categories