最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

phpStudy vscode 搭建debug調試的教程詳解

 更新時間:2020年07月28日 10:50:59   作者:GodricX  
這篇文章主要介紹了phpStudy vscode 搭建debug調試的教程,本文給大家介紹的非常詳細,對大家的學習或工作具有一定的參考借鑒價值,需要的朋友可以參考下

下載地址

phpstudy:https://www.xp.cn/download.html
vscode:https://code.visualstudio.com/ 設置
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+,調出setting,或則文件->首選項->設置

在這里插入圖片描述

php路徑設置

{
  "window.zoomLevel": 1,
  "git.confirmSync": false,
  "git.autofetch": true,
  "[javascript]": {
    "editor.defaultFormatter": "vscode.typescript-language-features"
  },
  //關鍵點
  "php.validate.executablePath": "D:/phpstudy_pro/Extensions/php/php7.3.4nts/php.exe"
}

Xdebug設置

{
  // 使用 IntelliSense 了解相關屬性。 
  // 懸停以查看現有屬性的描述。
  // 欲了解更多信息,請訪問: 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啟動調試

瀏覽器輸入:localhost/test.php

在這里插入圖片描述

到此這篇關于phpStudy vscode 搭建debug調試的教程詳解的文章就介紹到這了,更多相關phpStudy vscode 搭建debug調試內容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關文章希望大家以后多多支持腳本之家!

相關文章

最新評論

刚察县| 项城市| 梨树县| 磐安县| 韶关市| 太谷县| 孟连| 黔东| 华蓥市| 本溪市| 泸定县| 仪征市| 和平县| 贵港市| 稻城县| 兰州市| 兰考县| 恩平市| 张掖市| 航空| 沭阳县| 同仁县| 锡林郭勒盟| 富蕴县| 晋江市| 吉安县| 泾源县| 龙里县| 湟中县| 彭州市| 大田县| 阿瓦提县| 阳高县| 兴城市| 大同县| 永州市| 宜阳县| 太谷县| 忻城县| 西青区| 勃利县|