http://wiki.netbeans.org/HowToConfigureXDebug#How_to_configure_xdebug_with_WAMP
[xdebug]
zend_extension = D:\xampp\php\ext\php_xdebug-2.6.1-7.1-vc14.dll
xdebug.remote_autostart=on
xdebug.remote_enable=on
xdebug.remote_mode="req"
xdebug.remote_host=localhost
xdebug.remote_port=7777
xdebug.remote_handler="dbgp"
xdebug.idekey="netbeans-xdebug"
xdebug.max_nesting_level=600
然后对于netbean的端口号和key一致就可以了
[xdebug]
zend_extension = D:\xampp82\php\ext\php_xdebug-3.4.0beta1-8.2-vs16-x86_64.dll
xdebug.mode=debug
xdebug.force_display_errors=on
xdebug.force_error_reporting=1
xdebug.client_host=localhost
xdebug.client_port=9003
xdebug.discover_client_host=1
xdebug.idekey="netbeans-xdebug"
xdebug.start_with_request=yes