phpstorm xdebug
阿新 • • 發佈:2017-05-11
dea down 監聽 gis nbsp .html 試用 rate sage 1 安裝
1.phpstorm官網下載地址: https://www.jetbrains.com/phpstorm/download/download-thanks.html?platform=windows.
2.下載後安裝!!!
2 破解
1.http://idea.lanyus.com/jar/JetbrainsCrack-2.5.6.jar 下載jar文件。
2.下載的jar文件 放到phpstorm安裝目錄下的lib文件夾。
3.打開phpstorm,選擇試用模式才能打開。
選擇菜單 help >>>> Edit Custom VM options
如果沒有會提示創建,進行創建
打開文件
最後面加入 一行
-javaagent:F:\Program Files (x86)\JetBrains\PhpStorm 2016.1\lib\JetbrainsCrack-2.5.6.jar
後面是補丁的路徑,根據自己放的位置修改
保存文件
關閉並重新打開phpstorm
4.到網站 http://15.idea.lanyus.com/
生成一個激活碼
菜單 help >>>>Register
選擇Activation Code
將驗證碼粘貼進去
激活... 3 漢化 1.漢化包下載地址 http://xz2016.uzzf.com//pc/PhpStorm_2016.2_zh.zip or http://www.uzzf.com/soft/233746.html 2. 找到phpstorm的安裝路徑到lib下,把resources_en.jar文件復制出來,並更名為resources_cn.jar。 3、雙擊打開resources_cn.jar(註意是打開而不是解壓出來),將下載的漢化包zh_CN目錄下messages下的所有文件添加到剛才打開的resources_cn.jar文件內的messages目錄中,並保存。 4、將resources_cn.jar文件復制回PhpStorm的lib目錄下!!!ok!!!!
4 xdebug開啟
一:首先當然是要安裝xdebug啦,首先從http://www.xdebug.org/download.php下載你電腦上PHP版本對應的xdebug版本,將下載好的dll文件放入ext目錄下,配置php.ini
zend_extension = "D:/wamp/bin/php/php5.5.12/zend_ext/php_xdebug-2.2.5-5.5-vc11.dll";
[xdebug]
;允許遠程IDE調試
xdebug.remote_enable = on
;遠程主機
xdebug.remote_host = localhost
;默認端口9000
xdebug.remote_port = 9000
xdebug.idekey=PHPSTORM
配置完成之後重啟服務器查看phpinfo
這樣xdebug就安裝成功了
二:在瀏覽器的書簽欄中插入debug調試開關。以火狐瀏覽器為例
1:確定瀏覽器是否開啟了書簽工具欄
選擇Activation Code
將驗證碼粘貼進去
激活... 3 漢化 1.漢化包下載地址 http://xz2016.uzzf.com//pc/PhpStorm_2016.2_zh.zip or http://www.uzzf.com/soft/233746.html 2. 找到phpstorm的安裝路徑到lib下,把resources_en.jar文件復制出來,並更名為resources_cn.jar。 3、雙擊打開resources_cn.jar(註意是打開而不是解壓出來),將下載的漢化包zh_CN目錄下messages下的所有文件添加到剛才打開的resources_cn.jar文件內的messages目錄中,並保存。 4、將resources_cn.jar文件復制回PhpStorm的lib目錄下!!!ok!!!!
zend_extension = "D:/wamp/bin/php/php5.5.12/zend_ext/php_xdebug-2.2.5-5.5-vc11.dll";
[xdebug]
;允許遠程IDE調試
xdebug.remote_enable = on
;遠程主機
xdebug.remote_host = localhost
;默認端口9000
xdebug.remote_port = 9000
xdebug.idekey=PHPSTORM
配置完成之後重啟服務器查看phpinfo
2:前往網站http://www.jetbrains.com/phpstorm/marklets/
3:在xdebug區塊中點擊Generate按鈕(IDEKey就是在php.ini中配置的xdebug.idekey的值),將生成的兩個鏈接"Start debugger",“Stop debugger”拖拽到書簽欄中
三:在phpstorm中開啟debug監聽
四:打斷點
五:瀏覽器中輸入網址,在書簽欄中點擊“Start debugger”
這時候回到phpstorm上查看我們就能看到debug的調試信息了
phpstorm xdebug