[Zz] netbeans + php + debug

Source: Internet
Author: User
Tags netbeans
[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:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.