1. Version Correspondence
PHP versions, TS and NTS,VC9 and vc11,32 bits and 64-bit need to be correct.
First view the PHP installation version with Phpinfo
2. Download the corresponding version
https://xdebug.org/download.php
For example, the 32-bit TS version is downloaded: php_xdebug-2.4.1-5.4-vc9.dll, this file can be copied into any directory.
3. Configure php.ini Files
[Xdebug]
; Specifies the absolute path zend_extension=d:/phpext/php_xdebug-2.4.1-5.4-vc9.dll of the xdebug extension file
; Enable performance detection profiling
Xdebug.profiler_ Enable=on
enable code to automatically trace
xdebug.auto_trace=on
; Allow collection of parameter variables Xdebug.collect_params=on passed to the function
; Allows the collection of return values for function calls
Xdebug.collect_return=on
; Specifies the storage directory of the stack trace file
xdebug.trace_output_dir= "D:/debug"
; Specify the storage directory for the profiling file
xdebug.profiler_output_dir= "D:/debug"
xdebug.profiler_output_name = "cachegrind.out.%p"
xdebug.remote_enable = on
xdebug.remote_port=9000
xdebug.remote_handler = DBGP
xdebug.remote_ host = localhost
xdebug.var_display_max_depth = 10
4. Restart PHP
Check to see if Phpinfo () is loaded well xdebug extended
Description: If this is not the correct configuration or incorrect version
5. Configure Netbean
6. Interrupt Point Start Debugging