Use Netbeans for PHP Development

Source: Internet
Author: User
Nowadays, there are a lot of compilers used to write PHP scripts from zendstudio to notepad. Yes. I usually use Notepad, which is simple and convenient. Installing xdebug can also be used for good debugging. I have never used xdebug. However, after using netbeans, I think it is really good to use netbeans to write Php scripts. It has many built-in functions, including git and single-step disconnections.

Nowadays, there are a lot of compilers used to write PHP scripts from zendstudio to notepad. Yes. I usually use Notepad, which is simple and convenient. Installing xdebug can also be used for good debugging. I have never used xdebug. However, after using netbeans, I think it is really good to use netbeans to write Php scripts. It has many built-in functions, including git and single-step disconnections.

Nowadays, there are a lot of compilers used to write PHP scripts from zendstudio to notepad. Yes. I usually use Notepad, which is simple and convenient. Installing xdebug can also be used for good debugging. I have never used xdebug.

However, after using netbeans, I think it is really good to use netbeans to compile Php scripts. It has many built-in functions, including git and single-step breakpoint debugging functions, which are very practical.


You can try other functions. This is one of the main reasons why I like netbeans:


The configuration below xdebug in the php. ini file is as follows:

Xdebug. remote_enable = on

Xdebug. remote_handler = dbgp

Xdebug. remote_host = localhost
Xdebug. remote_port = 9000


9000 corresponds to the debugging port of the netbeans option. Must be consistent.


Output_buffering = off of the php. ini configuration file


Restart the apache service after modification.


PHP file debugging about Single Sign-On :( For example: debugging: http://test.cy0551.com/iwebshop/index.php? = Controller = ucenter & action = index)


1): Right-click Project properties, and the Project Properties window is displayed. The settings are as follows:


2) Open the ucenter. php file and set a breakpoint in the index function.


3): start the project debugging. Press f8 multiple times to enter IWeb: createWebApp ($ config)-> run (); until the run function is executed, and press f7 to enter, then f7 or ctrl + f7 jumps out until it is executed to the uncenter. PHP file.


By default, Netbeans editing is the strictest review mechanism. variables that are not declared or are incorrectly formatted are displayed in the status bar on the right. Sometimes it looks awkward, you can configure it in the tool = option = prompt. The specific method is to open the corresponding file, such as an html file, for configuration.


Shortcut Key: alt + q hide left navigation, alt + shift + D dock display


Netbeans optimized performance:

Http://stackoverflow.com/questions/229763/how-to-improve-netbeans-performance

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.