Download Eclipse for PHP (http://mirror.bit.edu.cn/eclipse/technology/epp/downloads/release/luna/SR1/eclipse-php-luna-SR1-win32.zip) and extract it to your chosen location (it is recommended not to include Chinese characters in the path), run eclipse.exe.
Configure Eclipse for PHP.
Configure character encoding.
Configure XDebug.
Configuring PHP Executables
6. Just create a php file, put a breakpoint, and then select like this:
Right-click the php file->Debug As->Php Web Page, eclipse will automatically open the php in the browser, and run until the breakpoint appears