有用 vs code 寫 php 的朋友不要錯過 Recca 寫的套件啊!
這年頭自己寫的玩具可以搞這麼威已經很少見了
#VSCode
#phpunit
https://marketplace.visualstudio.com/items…
這個玩具已經做到類似於 wallaby.js
但還有一些 bug
沒時間處理啊...
「php vscode套件」的推薦目錄:
- 關於php vscode套件 在 91 敏捷開發之路 Facebook 的最佳貼文
- 關於php vscode套件 在 [請益] 設定vscode php debug 逾時期限的方法? 的評價
- 關於php vscode套件 在 12 個前端愛用的VSCode 擴充套件 的評價
- 關於php vscode套件 在 【現正直播】用VS Code 輕鬆寫PHP 測試微軟開源的Visual ... 的評價
- 關於php vscode套件 在 【週五技術直播】用VS Code 輕鬆寫PHP 測試 的評價
- 關於php vscode套件 在 chewei05/php_coder: PHP/Laravel 開發程式集 - GitHub 的評價
- 關於php vscode套件 在 H5ai Github 的評價
php vscode套件 在 12 個前端愛用的VSCode 擴充套件 的推薦與評價
如果是在具有後端的環境下,如PHP、.NET 開發都是包含Web Server,但有時僅是製作小工具,如果還要開啟後端環境就太麻煩了, Live Server 這個套件能夠讓 ... ... <看更多>
php vscode套件 在 【現正直播】用VS Code 輕鬆寫PHP 測試微軟開源的Visual ... 的推薦與評價
大象PHP 的VScode 外掛套件全收錄. 兩三年前,微軟免費釋出的Visual Studio Code 除了在Windows 與Mac OS X 之外,連Linux 也可以安裝與使用的喔,VS Code 基本上在 ... ... <看更多>
php vscode套件 在 [請益] 設定vscode php debug 逾時期限的方法? 的推薦與評價
大家好
php 新手想請教一下如何在 vscode 正確設定執行環境的問題。
我是用 vscode 開發 wordpress 的場景。
為了除錯,我安裝 vscode 的 php debug extensions 並照著該套件的指示安裝 xdebug
。
https://github.com/felixfbecker/vscode-php-debug
開始除錯之後發現請求逾時的時間太短,我根本來不及仔細觀察執行狀況。
從 php 中斷執行之後,大概只要經過 2 ~ 3 分鐘,IIS 就會在網頁上回報 http
response code 500,請求逾時了。
為解決這個問題,我已經在 IIS 的站台管理界面設定請求逾時為 3600 秒,然後也在
php.ini 裡面設定 max_execution_time = 3600,最後再重啟站台和電腦,但是請求逾
時的期限好像沒什麼變化。
請問我還需要調整哪裡的設定才能解決這個問題呢?
謝謝大家指教~
以下附上系統資訊:
Windows 7 ver 6.1 SP1 build 7601
IIS 7.5.7600.16385
php 7.2.3-nts-Win32-VC15-x64
php xdebug 套件 2.7.2-7.2-vc15-nts-x86_64
vscode v1.33.1
vscode php debug v1.13
vscode 的 debug 設定 (launch.json):
{
"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
}
]
}
wordpress web.config 檔內容:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Main Rule" stopProcessing="true">
<match url=".*"/>
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/>
<add input="{REQUEST_FILENAME}" matchType="IsDirectory"
negate="true"/>
</conditions><action type="Rewrite" url="index.php"/>
</rule>
<rule name="WordPress: https://localhost" patternSyntax="Wildcard">
<match url="*"/>
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/>
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/>
</conditions>
<action type="Rewrite" url="index.php"/>
</rule></rules>
</rewrite>
<defaultDocument>
<files>
<add value="index.php"/>
</files>
</defaultDocument>
</system.webServer>
</configuration>
第一道規則好像是 wordpress 啟動後自己加上去的,但因為系統能動的關係,所以我就
沒去調整了。
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 118.160.103.36
※ 文章網址: https://www.ptt.cc/bbs/PHP/M.1557736652.A.DFD.html
已解決,原來是我沒有調整 FastCGI 的逾時期限。
似乎不只要調大 FastCGI 的逾時限制,而且還要調大活動逾時的限制,
否則一樣會逾時。
※ 編輯: dream1124 (118.160.103.36), 05/13/2019 21:28:05
... <看更多>