I believe that there are students in debug debugging when the 9000-port busy error can not be debugged,
The essence is because of conflict with FPM, so to modify the port, such as 9100, the default is 9000, so as to solve the problem.
Phpstorm Debug Configuration Front blog has detailed configuration here's not much to say
Workaround:
1. Open php.ini Add the following code under the Debug module
xdebug.remote_port=9100
Xdebug.remote_enable=on
2. The following figure, modify the Phpstorm configuration file, change the port to become 9100
3. Restart Nginx
4. Find debug already good, click on the bug to start debugging it ~
Summarize
1 to pay attention to the FPM and Xdebug port conflict problem, they all use 9000, to modify one of them;
2 Even if the machine is running Xdebug, also pay attention to it is remote debug function, to configure the relevant remote sever;