Simple and easy CMD + Click
to open php files at the right line number ✅
Bash script to help iTerm2 translate php stack traces + line numbers correctly when opening in PHPStorm.
Feel free to sent any improvements and changes this way.
I have only tested the script on a Mac, please report if successful on other platforms
wget https://raw.githubusercontent.com/rootindex/iterm2-phpstorm-helper/master/phpstorm-launcher-helper \
-O /usr/local/bin/phpstorm-launcher-helper \
&& chmod +x /usr/local/bin/phpstorm-launcher-helper
In iTerm2 you just need to change the launcher to a run command as follows:
If you have not setup a cli launch command for phpstorm follow these steps:
Francois Raubenheimer