Vagrant(WSL)+PHPStorm+Xdebu 斷點調(diào)試環(huán)境搭建
更新時間:2019年12月13日 09:14:10 作者:風(fēng)云
這篇文章主要介紹了Vagrant(WSL)+PHPStorm+Xdebu 斷點調(diào)試環(huán)境搭建,文中通過示例代碼介紹的非常詳細,對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧
1.Vagrant (LInux)環(huán)境下 Xdebug 配置 :
zend_extension=xdebug.so xdebug.remote_enable = 1 xdebug.remote_connect_back = 1 xdebug.remote_port = 9100 xdebug.idekey = "PHPSTORM" xdebug.remote_autostart = 1 xdebug.remote_handler="dbgp" xdebug.remote_mode="req"
2.PHPtorm 配置:
設(shè)置好端口,和Xdebug 設(shè)置的一樣:
設(shè)置好 目錄映射,這很關(guān)鍵
配置完成,測試debug
RUN->Start Listening for PHP debug connections->打斷點->debug
瀏覽器訪問網(wǎng)站, PHPstorm 那邊訪問搞定!!
以上就是本文的全部內(nèi)容,希望對大家的學(xué)習(xí)有所幫助,也希望大家多多支持腳本之家。
相關(guān)文章
Laravel執(zhí)行migrate命令提示:No such file or directory的解決方法
這篇文章主要介紹了Laravel執(zhí)行migrate命令提示:No such file or directory的解決方法,分析了執(zhí)行migrate命令出現(xiàn)錯誤的原因與相關(guān)的解決方法,需要的朋友可以參考下2016-03-03php獲取網(wǎng)頁中圖片、DIV內(nèi)容的簡單方法
這篇文章主要介紹了php獲取網(wǎng)頁中圖片、DIV內(nèi)容的簡單方法,都是通過正則表達式實現(xiàn)的,強大的正則啊,需要的朋友可以參考下2014-06-06