vscode 使用 PHP debug 除錯

chaofu發表於2019-01-06

vscode 版本 1.30.1 安裝php debug 外掛

  1. 在 extensions 搜尋 php debug 安裝
  2. 在php.ini 檔案配置
    在 [xdebug] 下面增加
    xdebug.remote_enable = On
    xdebug.remote_autostart = On
    同時配置
    zend_extension = "d:/wamp/bin/php/php5.5.12/zend_ext/php_xdebug-2.2.5-5.5-vc11.dll"
  3. 在選單file->perferces->setting 或者 ctrl+shift+x 開發配置檔案
    3.1 如何所示 設定配置
    file
    3.2 設定除錯模式 為 php
    file
    3.3 關閉vscode 重新開啟

相關文章