How to configure xdebug? under laradock

system environment
windows 10
php version: 7.2.4
IDE: PHPSTORM
current progress
xdebug extensions for workspace and php-fpm in laradock have been enabled.
browser has installed xdebug helper
debugging process you understand
after opening xdebug, the browser accesses the php file, php executes it one line, and then sends the result to the xdebug extension. IDE, which xdebug sends debug data locally, will tell php whether to proceed to the next line or interrupt first according to the command returned by IDE.
current doubts
  • is the remote_host in the 1.xdebug configuration the ip? of the computer where ide resides?
  • what is the use of host in server in the 2.phpstorm configuration item?
  • what does the 3.phpstorm configuration item DBGP proxy do?
  • is 4.xdebug helper required?
Baidu google n more tutorials, there are so many doubts, hope passing bosses under the guidance, but also have the same doubts in the future help!
Apr.02,2021

reply according to your own understanding (please point out what is wrong and learn together):

1. xdebug.remote_host indicates binding client host , defaults to localhost
2. server in PHPStorm setting indicates the service to be monitored. host is the address of the host to be monitored. Enter localhost on this machine and you can
3. DBGp Proxy proxy configuration, regardless of
4. xdebug helper

you can refer to https://codeshelper.com/a/11.

.
Menu