NetBeans Configuration xdebug Remote Debugging PHP

Source: Internet
Author: User
Tags netbeans

1. Configure PHP

Description: Xdebug.trace_output_dir and Xdebug.profiler_output_dir need to increase permissions

#chmod 755/usr/xdebug-tmp

Xdebug.remote_host is native Ip,xdebug.remote_port is the port that xdebug open in remote Linux, need to notice firewall need to open.

Restart PHP-FPM

# Killall PHP-FPM

#/ETC/INIT.D/PHP-FPM

See phpinfo there must be a xdebug extension to indicate that the installation was successful:

2. Configure NetBeans

Configure debug Information First



Need to configure remote connection information again
Click "Manage" to pop up the Manage Remote Connection dialog box. Click Add to create a new remote connection, note the connection type choose SFTP, so you can use the default root account, or you need to set up FTP.


Note: If you have set up a new PHP project, you do not need to set it up.

3. Commissioning

After you set up the above sections, you can power down the PHP code, click "Run"-"Debug Project",

If Xdebug is not configured for a variety of reasons, it will always appear in the lower right corner of NetBeans "connected."

The variable information can be viewed from the Watch window only if "run" is indicated to be successful.


NetBeans Configuration xdebug Remote Debugging PHP

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.