debugging php with XDEBUG
Posted: Mon Apr 20, 2020 3:40 pm
Hello,
i will debugging a simple script.
I works under Windows 10.
I start the the build in php server with:
-----------
php -S 127.0.0.1:80 -t c:/xampp1/htdocs/test/public/
-----------------------
In the php.ini file i have the block:
---------------------------
[Xdebug]
zend_extension = C:\xampp1\php-7.3.6\ext\php_xdebug.dll
; remote Debugging
xdebug.remote_enable = true
; xdebug.remote_autostart = true
xdebug.remote_host = "127.0.0.1"
xdebug.remote_port = 9000
xdebug.remote_handler = "dbgp"
xdebug.idekey="PHPSTORM"
-----------------------
When i run the command;
-----------------
phpinfo();
--------------------
I see in the browser xdebug work correct.
My test script is:
-------------------
<?php
$test123;
for($i = 0; $i < 10; $i++){
echo $i."<br>";
}
----------------------------
when i call 127.0.0.1/public/index.php
the script works correct.
Now my question. How can i start xdebug in CodeLite ?
Your sincerly
Stephan
i will debugging a simple script.
I works under Windows 10.
I start the the build in php server with:
-----------
php -S 127.0.0.1:80 -t c:/xampp1/htdocs/test/public/
-----------------------
In the php.ini file i have the block:
---------------------------
[Xdebug]
zend_extension = C:\xampp1\php-7.3.6\ext\php_xdebug.dll
; remote Debugging
xdebug.remote_enable = true
; xdebug.remote_autostart = true
xdebug.remote_host = "127.0.0.1"
xdebug.remote_port = 9000
xdebug.remote_handler = "dbgp"
xdebug.idekey="PHPSTORM"
-----------------------
When i run the command;
-----------------
phpinfo();
--------------------
I see in the browser xdebug work correct.
My test script is:
-------------------
<?php
$test123;
for($i = 0; $i < 10; $i++){
echo $i."<br>";
}
----------------------------
when i call 127.0.0.1/public/index.php
the script works correct.
Now my question. How can i start xdebug in CodeLite ?
Your sincerly
Stephan