debug工作環境

目的:
開發過程中,不可以在正式環境下進行debug的動作,因此需要借助其他套件程式增加開發以及debug的效率

測試階段 - 架設兩種不同環境server模組:

1. 維運框架的xampp - linux 5.6.31 for php 5.6.31:
https://sourceforge.net/projects/xampp/?source=typ_redirect

2. 私人開發環境 :
tortiseSVN -
phpstorm - php付費軟體
xdebug - 搭配VS Code php debug工具(PHP Debug)
PHP IntelliSense - 開發php時會顯示提示字
Live Server Preview - 顯示目前程式碼的畫面 for HTML
Sublime Text Keymap - 延續原有Sublime的快速鍵
Git Lens - VS Code工具 的git版控使用套件
Git History - VS Code 工具的git版本記錄歷史訊息
PHP Parser - 用來debug,
php symbols - 用來列出程式,不用在php環境,更快速以及忽略錯誤

3.開發工具:
(1). VSCode - 使用最新版本:September 2017 (version 1.17)
(2). 喜好設定:
 "editor.formatOnSave": true, "editor.fontSize": 18, "editor.fontFamily": "Menlo, Monaco, 'Courier New', monospace", "editor.fontWeight": "normal", "editor.mouseWheelZoom": false, "emmet.triggerExpansionOnTab": true, "emmet.showExpandedAbbreviation": "always", "emmet.showAbbreviationSuggestions": true

4.需要加強部分:
Git的使用

5. VS Code 待調整:
PHP executable not found. Install PHP 7 and add it to your PATH or set the php.executablePath setting

解決方案:
[設定]-->[喜好設定]-->加入以下程式碼:
"php.validate.executablePath": "D:\\xampp\\php\\php.exe",


之前無法成功的原因:路徑部分的寫法要用溢出字元[\]
錯誤寫法:
"php.validate.executablePath": "D:\xampp\php\php.exe",


GitLens was unable to find Git. Please make sure Git is installed. Also ensure that Git is either in the PATH, or that 'gitlens.advanced.git' is pointed to its installed location.


留言

熱門文章