In guest:
- Create file
/usr/bin/debugwith contents added below (filedebugbelow) - Make it executable
$ sudo chmod 0777 /usr/bin/debug
In host:
- Go to PHPStorm
Settings > Project settings > PHP > Servers - Add server with following parameters:
- Name:
vagrant(same asserverName=indebugscript) - Host, port: set vagrant box IP and port
- Debugger: Xdebug
- [v] Use path mappings
- Map your project root in host to relative dir in guest
- Hit OK
- Name:
you can also
/your/path/to/app/consolecache:clear