顯示具有 phpstorm 標籤的文章。 顯示所有文章
顯示具有 phpstorm 標籤的文章。 顯示所有文章

2016年12月16日 星期五

phpstorm connection with xdebug was not established. validate installation

Another way to solve it - to change the port of xdebug in php.ini. For example to 9001:
xdebug.remote_port=9001
After that you need to change xdebug port in PhpStorm in Preferences->Languages & Frameworks -> PHP -> Debug. Xdebug port set to 9001.

from : http://stackoverflow.com/questions/31285486/connection-between-phpstorm-and-xdebug

2016年11月10日 星期四

如何使用 PhpStorm 查看类的继承关系

今天一个同事教了我一个很有用的小技巧,通过 PhpStorm 查看类的集成关系。
场景是这样的,我使用 Guzzle 要调用一些 api,api 出错了我需要处理 Exception,这个时候我肯定会看一下 Guzzle 的文档,不过看文档稍微有点繁琐,如果你使用 PhpStorm,有更简单的办法:
第一步:选中 Guzzle 的 Exception 文件夹
file
第二步:选中 Show Diagram
file
结果:
file
是不是很神奇? 这个时候,我大概 Catch RequestException 来处理一下比较合理。

from : https://laravel-china.org/topics/3187

wibiya widget