<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                * **vscode** vscode安裝好后,在vscode商店中搜索安裝下面的2個插件: Intelephense可有可無,是 PHP代碼提示工具,支付代碼提示、查找定義、類搜索等功能。 ![](https://img.kancloud.cn/67/13/6713bd20069701b765e39c81a6455932_720x393.png) 裝完插件,然后配置插件:File--Preferences--Settings--Extensions--PHP: ![](https://img.kancloud.cn/7f/0a/7f0ad2d9b86d69b1bc5ad554a1539858_720x459.png) 寫入你要用的php版本所在位置: ~~~text "php.validate.executablePath": "D:\\phpstudy_pro\\Extensions\\php\\php7.1.9nts\\php.exe", ~~~ ![](https://img.kancloud.cn/6e/4b/6e4b70cab764c2b8c66689d9237c508b_984x194.png) * **xdebug** 選擇phpstudy的環境,如圖我用的是7.1.9: ![](https://img.kancloud.cn/f5/f2/f5f26ae351d1810f185dbe871c1773e3_720x536.png) 之后點擊旁邊的設置,打開擴展組件,做如下的配置,我用的調試端口是9001,然后點確定: ![](https://img.kancloud.cn/32/c6/32c67cc15971af36002cef7aecc47d78_720x517.png) 打開7.1.9的php.ini: ![](https://img.kancloud.cn/dc/97/dc971179d4e7d0a160c3439a42722b75_654x464.png) 做了如上的配置后,在php.ini文件中就有Xdebug的內容: ![](https://img.kancloud.cn/fd/1f/fd1f87aa38e18121251a75c3af1301ef_843x310.png) ## 我遇到的坑點就在這里,導致斷點失敗。解決方法如下: **配置文件中xdebug.remote\_enable=Off需要改為On** **添加一行配置:xdebug.remote\_autostart = On** ![](https://img.kancloud.cn/1a/04/1a04fea23d0ebd345c908042948b2ecd_833x316.png) 保存配置文件后記得重啟一下nginx。我們去vscode中設置,填上xdebug的端口: ![](https://img.kancloud.cn/31/11/311192bec421fbf0671348a4ffc3bff3_1158x598.png) 下斷點,F5啟動debug,瀏覽器訪問test.php,此時就能踩到斷點了: ![](https://img.kancloud.cn/c4/4d/c44dd0e37695cea4ec80c45c5268646a_707x267.png) 至于下圖的這個問題,不解決貌似沒啥影響。如果實在強迫癥,要解決,可以去xdebug官網下載適合你php版本的的xdebug(這一步網上也很多教程),并改掉php.ini里面的xdebug路徑指向你下載的xdebug就OK: ![](https://img.kancloud.cn/fb/b0/fbb08caabe54a3dd5ef26ae49eb4d50e_1201x426.png) 比如我的是這個: ![](https://img.kancloud.cn/49/3d/493d91de421b2821e656ed367e0e9697_974x270.png) 嗯,真香,沒有紅色了。 ![](https://img.kancloud.cn/98/51/98512cd681abb55be3d80045b4affb3c_1178x287.png)
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看