Don't talk nonsense, start straight.
First step: Install and configure Xdebug
- Installation
The PHP version of Xdebug can be downloaded directly from the website: https://xdebug.org/download.php
- Configuration, the typical configuration is as follows:
zend_extension= "xxxxx"//Xdebug Address
Xdebug.remote_enable = On
Xdebug.remote_connect_back = 1
xdebug.remote_host= client_ip_address//Client IP address
Xdebug.remote_port = 9000//port number, phpstorm default is 9000, here need and client port number corresponding
Xdebug.idekey = phpstorm//This needs to be consistent with client configuration
Step Two: Configure Phpstorm
- file-"settings-" Languages & Frameworks-"PHP-" Debug
- Open the Phpstorm main panel and configure the debug parameters as shown
- Turn on Phpstorm debug
Third, set breakpoints and enjoy it!
Phpstrom and Xdebug for PHP single-step debugging