I have xdebug working great when I access my server directly (thru a vhost entry to the IP set up by homestead/vagrant). However, I have a decoupled frontend that I'm running on localhost:8080, that talks to that laravel backend server, but xdebug doesn't trigger on those requests. I think I just have to set the cookie XDEBUG_SESSION=PHPSTORM
in my requests coming from the front-end, however I'm not sure how to do that with vue-resource as I didn't see anything in the docs for this. I tried the following:
Vue.http.headers.common['Cookie'] = 'XDEBUG_SESSION=PHPSTORM'
however, I get warned Refused to set unsafe header "Cookie"
by chrome. Anyone have ideas of anything else I can try?