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