【php】phpstorm + xdebug helper

Ready to work:

1) Download php, setting up the environment

2) Download php xdebug extension

https://xdebug.org/download   according to local php version selection

3) Download phpstorm, or charge money to crack (I so much money, how could they know how to crack)

text:

1. xdebug file extension .dll (library?) Placed php extensions folder inside the (non-essential, but good path with a point)

2. Configure php.ini (check the configuration successful approach: to restart the server, view the phpinfo there are no xdebug)

[xdebug]
#这里最好写全路径,因为我的扩展文件放在ext文件夹里面,所以省了
zend_extension=php_xdebug-2.9.4-7.3-vc15-nts-x86_64.dll
xdebug.remote_enable = On
xdebug.remote_handler = dbgp
xdebug.remote_host= localhost
#这里是监听端口,默认9000  要和phpstorm里面配置的一致
xdebug.remote_port = 9001
#这个是暗号
xdebug.idekey = PHPSTORM

3. Configure phpstorm

file => setting => Languages & Frameworks => PHP => Debug Settings 9001 Port Debug (php.ini keep the inside xdebug.remote_port set the same)

File => Settings => language and framework => PHP => Debug Settings debug port 9001 (php.ini keep this inside xdebug.remote_port set the same)

4. Download xdebug helper plugin (Google plugin, you need over the wall)

or

Poor solution: to ensure that your request is set in the cookie XDEBUG_SESSION = PhpStorm

5.phpstorm open debug monitor, browser with cookie access

 

Published 35 original articles · won praise 18 · views 370 000 +

Guess you like

Origin blog.csdn.net/TXX_c/article/details/105206516