[Zz] netbeans + php + debug Netbeans with PHP is easy to install. In addition, installing XAMPP is basically invincible, and PHP development environments are available.
Http://www.apachefriends.org/zh_cn/xampp-windows.html: XAMPP
After the author's test, if you download Lite version, php does not have xdebug, and the full version directly carries xdebug, in php/ext/xdebug. dll
Therefore, if you download the Lite version, you need to go to the xdebug homepage to download an xdebug suitable for your php and OS versions, such as php5.3 and 32bit windows, download 5.3 VC6 (32 bit)
Modify php. ini
Add:
Zend_extension = "D:/XAMPPLite/php/ext/php_xdebug-2.0.5-5.2.dll"
[Xdebug]
Xdebug. profiler_enable = on
Xdebug. trace_output_dir = "D: \ XAMPPLite \ xdebug"
Xdebug. profiler_output_dir = "D: \ XAMPPLite \ xdebug"
Xdebug. remote_enable = on
Xdebug. remote_handler = dbgp
Xdebug. remote_host = localhost
Xdebug. remote_port = 9009
Note the first line: for PHP5.3, zend_extension is used. for PHP5.2, zend_extension_ts is used.
Remote_port can be set by yourself, but it must be the same as that configured in the Netbeans environment. the specific setting path is:
Tool => option => PHP => debugger path:
Well, there is a corresponding relationship between the two sides, but there is another point worth noting. in the project Property => run configuration => debugger proxy, nothing can be written here. we don't have a proxy, if you understand this agent as the debugger location and enter localhost: 9009, you cannot connect to the debugger.
OK, the following is Debugging. If ctrl + F5 is completed, the single-step debugging starts and stops at the first line (this can also be set)
Success mark: debugging options such as step-in and step-out are on, and the "running" status bar is displayed below: