php - How to Xdebug multiple sites hosted on my local machine that make requests to each other (in PhpStorm)? -
i'm attempting xdebug working phpstorm on multiple sites. have 2 sites both being served in same vagrant vm on local machine:
http://my-app.dev (makes requests api below, xdebug working)
http://my-rest-api.dev (receives requests, xdebug not working)
my app makes requests rest api. when visit http://my-app.dev in browser, xdebug working correctly in phpstorm project. i'll have api project open in phpstorm well. when set breakpoints in api project never hit (even though app making requests api). way can breakpoints work in api if open browser tab , type in api's endpoints directly address bar. know there extensions can use test api endpoints, not convenient @ all, since requests cumbersome build manually each time.
both projects set in phpstorm listen php debug connections
. tried turning on xdebug.remote_autostart = 1
in xdebug.ini file on vm server. i've set max. simultaneous connections
10 in phpstorm debug preferences.
any solution on how can debug both these sites together? think question lot of developers.
Comments
Post a Comment