You shouldn't create a run configuration at all, just to click on the listen button:
Configure xdebug to attempt to debug every single script (
xdebug.remote_autostart = 1
andxdebug.remote_enable = 1
).Use "Phone handle" icon in IDE to start listening for debug connections (e.g. as described in here)
Launch your php code from anywhere -- XDebug will attempt to debug every incoming request.
Here is an hour long webinar about the subject.
bonus
if you're interested in doing the same thing on vi + xdebug, see this answer.