After that you need to press "Start listen on PHP debug connections" (phone icon), set a breakpoint and start a debug session (bug icon). To trigger the debug session you access your API endpoint via GET, POST, with query param ?XDEBUG_SESSION_START=PHPSTORM or cookie set to XDEBUG_SESSION = PHPSTORM. To set this cookie easily you can use Xdebug Helper extension or a similar one.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I've used this
xdebug.ini
placed in/usr/local/etc/php/conf.d/
Where
host.docker.internal
is the proper way to access your host ip address in a containerized app in Docker Desktop clients.Also you need to add the next line to your Dockerfile or set
environment
field indocker-compose.yml
After that you need to press "Start listen on PHP debug connections" (phone icon), set a breakpoint and start a debug session (bug icon). To trigger the debug session you access your API endpoint via GET, POST, with query param
?XDEBUG_SESSION_START=PHPSTORM
or cookie set toXDEBUG_SESSION = PHPSTORM
. To set this cookie easily you can use Xdebug Helper extension or a similar one.