Автор оригинала: David Wong.
1. Основная информация:
2. Установите Xdebug
1) Download Xdebug extension https://xdebug.org/ 2) Configure php.ini
[xdebug] zend_extension="E:\phpstudy\php\php-7.1.3-nts\ext\php_xdebug-2.5.1-7.1-vc14-nts-x86_64.dll" xdebug.remote_enable=1 xdebug.remote_handler=dbgp xdebug.remote_mode=req xdebug.remote_host=localhost xdebug.remote_port=9000 xdebug.idekey="PHPSTORM"
3. Настройка phpstorm
1) New PHP server
(Note: If path mapping is not used, only the framework entry file will be debugged) 2) debug configuration
4. chrome плагин Xdebug помощник
Address: https://chrome.google.com/webstore/detail/xdebug-helper/eadndfjplgieldjbigjakmdgkmoaaaoc?Utm_source=chrome-app-launcher-dialo-info-og
5.конфигурация помощника xdebug
6. Тестирование Chrome
1) Open Editor Monitor
2)
3) Browser Access Project
4) Open phpstorm and you can see that the debug console is open
5) Breakpoint
6) Move to the next breakpoint and you can see the effect.
7) Debugging API with postman
Installation plug-in
Using postman requests
Enter breakpoint
7. Конец
The first time I wrote an article, I found that there are many advantages in writing an article. Although many tutorials can be received online, the success of writing and configuration is totally different. Any mistakes in this article are welcome to be pointed out.
Оригинал: “https://developpaper.com/debugging-php-using-xdebug-phpstorm-chrome-postman/”