Hi..
Did you try creating a test.php with phpinfo() in it to confirm that xdebug is loaded like it should be?
Try adding xdebug_break(); somewhere in that file and then run it with php test.php.
If all that works, then it's possible that you have some firewall problem. Try netstat -a -o to figure out if something is listening on port 9000. Notepad++ (dbgpplugin) should listen on that port.
Best of luck.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You need to have you notepad++ and the debug plugin running (make sure it's visible and that the button on the form says "Turn OFF" - confusing, I know).
Then open a dos box, set the XDEBUG_CONFIG variable and run php...
N++ window should flash.
-Z
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
who configured debug in php-gtk?. Program is desktop, no web.
sorry, debug is not RUN. my php.ini is :
zend_extension=C:\php-gtk2\php_xdebug-2.0.2-5.2.5.dll
xdebug.remote_autostart=on
xdebug.remote_enable=on
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.idekey=test
I don't error, but debug not run (F9 is disabled in menu pluging debug).
Hi..
Did you try creating a test.php with phpinfo() in it to confirm that xdebug is loaded like it should be?
Try adding xdebug_break(); somewhere in that file and then run it with php test.php.
If all that works, then it's possible that you have some firewall problem. Try netstat -a -o to figure out if something is listening on port 9000. Notepad++ (dbgpplugin) should listen on that port.
Best of luck.
It is possible to debug php CLI.
Take a look at this: http://xdebug.org/docs/remote
In windows you do
set XDEBUG_CONFIG="idkey=test"
Or something similar... I have tested it personally and it works one way or another.
Of course you still need all other installation steps, read the docs on xdebug site.
-Z
I can view your configuration file in php.ini or example? thanks
I don't have my computer with me, but it looks something like this
zend_extension="C:\php5\ext\php_xdebug-2.0.2-5.2.5.dll"
xdebug.remote_enable=On
xdebug.remote_handler=dbgp
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
You need to have you notepad++ and the debug plugin running (make sure it's visible and that the button on the form says "Turn OFF" - confusing, I know).
Then open a dos box, set the XDEBUG_CONFIG variable and run php...
N++ window should flash.
-Z