phpstrom下載及配置
下載破解phpstrom
下載phpstrom 2018.2.5 網盤中有
windows下找到
C:\Windows\System32\drivers\etc
1.開啟hosts檔案,新增:0.0.0.0 account.jetbrains.com
2.用瀏覽器開啟 http://idea.lanyus.com/ ,點選頁面中的“獲得註冊碼”,然後在註冊時切換至Activation Code選項,輸入獲得的註冊碼
關閉try黃色報錯提示
PHPStorm 2017.3中新增加了Unhandled Exception 異常提示: 比如使用了throw new Exception("…") 的地方 方法體的phpdoc中沒有新增@throw Exception 標籤或者在程式碼塊中沒有新增try-catch 就會有該提示,官方描述如下: In PhpStorm 2017.3 we’ve added a new inspection Unhandled Exception, which can be found under Settings | Editor | Inspections | PHP | Probable bugs | Unhandled exception. It reports exceptions which are neither enclosed in a try-catch block nor documented using the @throws tag. The inspection helps you find all the places where exceptions could be thrown what would, in turn, lead to Fatal Error. There is a quick fix: “Add @throws tag” and in the next EAP we’re planning to release “Surround with try/catch” quick fix.
如何關掉提示: Preferences->Editor->Inspections-> 搜尋框輸入“Unhandled Exception” 把後面的框變為未勾選狀態 點選OK 即可
使用xdebug
若使用wampserver安裝,則已下載好xdebug
[xdebug]
zend_extension =“D:\wamp64\bin\php\php7.1.9\zend_ext\php_xdebug-2.5.5-7.1-vc14-x86_64.dll”
xdebug.remote_enable = on
xdebug.profiler_enable = on
xdebug.remote_port=9000