Configure PHP breakpoint debugging

  1. Locate the php.ini configuration file

File path: E:\wamp64\bin\apache\apache2.4.23\bin

Locate the xdebuger configuration information location.

Adding Configuration Information

Add the configuration information and restart the server.

Enter Localhost to view the configuration information.

Enter a phpinfo.

If the configuration information is displayed, the IP address is successfully added.

  1. Phpstorm configuration

Configure the debug server.

Ensure that the port number is 9000

  1. Install xdebuger

Chrome – > More Tools – > Extensions.

Add to complete

  1. Test the breakpoint

Note: this debugging mode, is the passive debugging mode, need to trigger!

Trigger the script when requested.

Make a breakpoint on the background file

Turn on the phone tap.

Light the green bug!

Debugger

Submit file triggers response!

So you can see what’s going on in the background.

A debugging tool

Breakpoint debugging effect

xdebug.txt

; The XDEBUG Extension zend_extension = "e: / wamp/bin/PHP/php5.5.12 / zend_ext/php_xdebug - 2.2.5-5.5 - vc11. DLL"; [xdebug] xdebug.remote_enable = off xdebug.profiler_enable = off xdebug.profiler_enable_trigger = off xdebug.profiler_output_name = cachegrind.out.%t.%p xdebug.profiler_output_dir = "e:/wamp/tmp" xdebug.show_local_vars=0 xdebug.idekey=PhpStorm xdebug.remote_enable = On xdebug.remote_host=localhost xdebug.remote_port=9000 xdebug.remote_handler=dbgpCopy the code

Buy me a cup of coffee 🙂