Windows 10 + Netbeans 8.2 + Wamp 3.0.8 + Command line

I wanted to debug my yii2 code through console.

So I have configured xdebug already into netbeans and its working fiine with browser.

Now trying to connect through console but it keeps showing "waiting for connection"

Almost i tried all stackoverflow solutions as follows :

Current Path : c/wamp/www/project/_protected

1) php -d xdebug.profiler_enable=1 yii croncontroller/xyzaction

2) php -d xdebug.remote_enable=1 -d xdebug.remote_mode=req -d xdebug.remote_port=9000 -d xdebug.remote_host=localhost yii croncontroller/xyzaction

3) php -d XDEBUG_SESSION_START=netbeans-xdebug yii croncontroller/xyzaction

I have already set breakpoints but its even not making the connection.

I have also disabled firewall.

PHP.ini :

xdebug.remote_enable=on

xdebug.remote_enable=1

xdebug.remote_host=localhost

;xdebug.remote_host=192.168.1.102 //tried local IP as well

xdebug.remote_port=9000

xdebug.remote_autostart=on

xdebug.idekey="netbeans-xdebug"

xdebug.remote_mode=req

xdebug.remote_handler="dbgp"

链接地址: http://www.djcxy.com/p/65656.html

上一篇: 与Atom的XDebug卡住了

下一篇: Windows 10 + Netbeans 8.2 + Wamp 3.0.8 +命令行