Friday 10 January 2014

NetBeans PHP Debugging with WAMP

PHP and NetBeans Debug process Working.
Edit(add the lines) into php.ini file like this.

; XDEBUG Extension
zend_extension = "c:/wamp/bin/php/php5.4.16/zend_ext/php_xdebug-2.2.3-5.4-vc9.dll"
[xdebug]
xdebug.remote_enable = on
xdebug.profiler_enable = on
xdebug.remote_handler=dbgp
xdebug.idekey="netbeans-xdebug"
xdebug.profiler_enable_trigger = off
xdebug.profiler_output_name = cachegrind.out.%t.%p
xdebug.profiler_output_dir = "c:/wamp/tmp"

Prevoiusly it was in this format.
---------------------------------
; XDEBUG Extension

zend_extension = "c:/wamp/bin/php/php5.4.16/zend_ext/php_xdebug-2.2.3-5.4-vc9.dll"

[xdebug]
xdebug.remote_enable = off
xdebug.profiler_enable = off

xdebug.profiler_enable_trigger = off
xdebug.profiler_output_name = cachegrind.out.%t.%p
xdebug.profiler_output_dir = "c:/wamp/tmp"

-------------------------------------------------
Once complete these steps restart Netbeans and Wamp server.

Debug : stop Debug whole Netbeans project.
Create project make Errored PHP file.

right click and debug ,press F5 after that line move cursor on line. It show Debugging.
-------------------------------------------------------
Thanks for Ref:
http://stackoverflow.com/questions/13028768/netbeans-not-connecting-with-xdebug-on-wamp-showing-waiting-for-connection#comment17685664_13028768


No comments:

Post a Comment