I did 3 days of research and couldn't really solve my issue.
Here is my xdebug setting in php.ini
xdebug.idekey="netbeans-xdebug"
xdebug.remote_enable=1
xdebug.remote_host=127.0.0.1
xdebug.remote_connect_back=1 # Not safe for production servers
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_autostart=true
One thing I notice writing this question was even when I'm debugging the port is always set to 8000 when I set it to 9000:
So I thought maybe NetBeans is pointing to a wrong php.ini ? I run phpinfo() in my test.php and it gave me this:
Now I'm totally lost. What should I do to make xdebug to work on NetBeans?
EDIT: I'm using internal web-server on NetBeans
EDIT: Things started to progress but now NetBeans give me this weird output:
"D:\bit_nami\php\php.exe" "-S" "localhost:9001"
[Tue Aug 08 02:42:38 2017] PHP Warning: PHP Startup: Unable to load dynamic library 'D:\bit_nami\php\ext\php_pdo_firebird.dll' - 占쏙옙占쏙옙占쏙옙 占쏙옙占� 찾占쏙옙 占쏙옙 占쏙옙占쏙옙占싹댐옙.
in Unknown on line 0
[Tue Aug 08 02:42:38 2017] PHP Warning: PHP Startup: Unable to load dynamic library 'D:\bit_nami\php\ext\php_pdo_oci.dll' - 占쏙옙占쏙옙占쏙옙 占쏙옙占� 찾占쏙옙 占쏙옙 占쏙옙占쏙옙占싹댐옙.
in Unknown on line 0
[Tue Aug 08 02:42:38 2017] PHP Warning: Xdebug MUST be loaded as a Zend extension in Unknown on line 0
[Tue Aug 08 02:42:38 2017] PHP Warning: Module 'xdebug' already loaded in Unknown on line 0
[Tue Aug 08 02:42:38 2017] Failed to listen on localhost:9001 (reason: 액세스 권한에 의해 숨겨진 소켓에 액세스를 시도했습니다.
)
<br />
<b>Warning</b>: PHP Startup: Unable to load dynamic library 'D:\bit_nami\php\ext\php_pdo_firebird.dll' - 占쏙옙占쏙옙占쏙옙 占쏙옙占� 찾占쏙옙 占쏙옙 占쏙옙占쏙옙占싹댐옙.
in <b>Unknown</b> on line <b>0</b><br />
<br />
<b>Warning</b>: PHP Startup: Unable to load dynamic library 'D:\bit_nami\php\ext\php_pdo_oci.dll' - 占쏙옙占쏙옙占쏙옙 占쏙옙占� 찾占쏙옙 占쏙옙 占쏙옙占쏙옙占싹댐옙.
in <b>Unknown</b> on line <b>0</b><br />
<br />
<b>Warning</b>: Xdebug MUST be loaded as a Zend extension in <b>Unknown</b> on line <b>0</b><br />
<br />
<b>Warning</b>: Module 'xdebug' already loaded in <b>Unknown</b> on line <b>0</b><br />
Done.




zend_extension=...xdebug...instead ofextension=...xdebug...Xdebug MUST be loaded as a Zend extension in Unknown on line 0issue. For php load dynamic library visit this. Hope it helps