phpStudy vscode 搭建debug調(diào)試的教程詳解
下載地址
phpstudy:https://www.xp.cn/download.html
vscode:https://code.visualstudio.com/ 設(shè)置
phpstudy版本:7.3.4nts

[Xdebug] zend_extension=D:/phpstudy_pro/Extensions/php/php7.3.4nts/ext/php_xdebug.dll xdebug.collect_params=1 xdebug.collect_return=1 xdebug.auto_trace=On xdebug.trace_output_dir=D:/phpstudy_pro/Extensions/php_log/php7.3.4nts.xdebug.trace xdebug.profiler_enable=On xdebug.profiler_output_dir=D:/phpstudy_pro/Extensions/php_log/php7.3.4nts.xdebug.profiler xdebug.remote_enable=On xdebug.remote_autostart=On xdebug.remote_host=localhost xdebug.remote_port=9000 xdebug.remote_handler=dbgp
vscode :
ctrl+,調(diào)出setting,或則文件->首選項->設(shè)置

php路徑設(shè)置
{
"window.zoomLevel": 1,
"git.confirmSync": false,
"git.autofetch": true,
"[javascript]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
//關(guān)鍵點
"php.validate.executablePath": "D:/phpstudy_pro/Extensions/php/php7.3.4nts/php.exe"
}
Xdebug設(shè)置
{
// 使用 IntelliSense 了解相關(guān)屬性。
// 懸停以查看現(xiàn)有屬性的描述。
// 欲了解更多信息,請訪問: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Listen for XDebug",
"type": "php",
"request": "launch",
//端口
"port": 9000
},
{
"name": "Launch currently open script",
"type": "php",
"request": "launch",
"program": "${file}",
"cwd": "${fileDirname}",
//端口
"port": 9000
}
]
}
驗證

vscode F5啟動調(diào)試
瀏覽器輸入:localhost/test.php

到此這篇關(guān)于phpStudy vscode 搭建debug調(diào)試的教程詳解的文章就介紹到這了,更多相關(guān)phpStudy vscode 搭建debug調(diào)試內(nèi)容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!
相關(guān)文章
詳解關(guān)于php的xdebug配置(編輯器vscode)
這篇文章主要介紹了詳解關(guān)于php的xdebug配置(編輯器vscode),小編覺得挺不錯的,現(xiàn)在分享給大家,也給大家做個參考。一起跟隨小編過來看看吧2019-01-01
ThinkPHP中__initialize()和類的構(gòu)造函數(shù)__construct()用法分析
這篇文章主要介紹了ThinkPHP中__initialize()和類的構(gòu)造函數(shù)__construct()用法,以實例形式分析了ThinkPHP中類的初始化時構(gòu)造子類的方法,是采用ThinkPHP進行面向?qū)ο蟪绦蛟O(shè)計中比較重要的概念,需要的朋友可以參考下2014-11-11
Laravel 創(chuàng)建指定表 migrate的例子
今天小編就為大家分享一篇Laravel 創(chuàng)建指定表 migrate的例子,具有很好的參考價值,希望對大家有所幫助。一起跟隨小編過來看看吧2019-10-10
php輸出1000以內(nèi)質(zhì)數(shù)(素數(shù))示例
這篇文章主要介紹了php輸出1000以內(nèi)質(zhì)數(shù)的示例,需要的朋友可以參考下2014-02-02

