I have two applications running locally, one is written in golang, and the other is PHP. Whenever I debug the php application by accessing it through the browser with my xdebug helper extension enabled the breakpoints work fine inside of PhpStorm, and it logs to the log file as well.
I have the following in my php.ini
inside of the php/apache2
and php/cli
directories.
[xdebug]
zend_extension = /usr/lib/php/20131226/xdebug.so
xdebug.remote_enable = 1
xdebug.remote_port = 9000
xdebug.remote_host = "localhost"
xdebug.remote_log = "/var/log/httpd/xdebug_log"
When I access the application in the browser I use my virtual host somesite.dev
and when I do the API request from the other application I send it to somesite.dev/api/someendpoint
, nothing is registered in the log file etc.
In PhpStorm settings I have unchecked "Ignore external connections through unregistered server configurations", checked "Detect path mappings from deployment configuration", checked "Break at first line in php", checked "Can accept external connections". And I have my somesite.dev
created as a server inside of "Languages and Frameworks > PHP > Servers"
Have anyone experience triggering the breakpoints in xdebug from a local RESTful API?