Answer: The PHP extension provides a debug adapter for PHP via Xdebug, which you can use with configurations such as "PHP: Listen to Xdebug" (port 9003) or "PHP: Debug this test" for PHPUnit. Troubleshooting tips include ensuring Xdebug is installed, configured in debug mode, actually starting a session, and that host and port match between Xdebug and Zed. Status: Overdue (check was due 2026-11-20T13:42:54Z and has not succeeded) Entry: tool/zed/troubleshooting/debug-php Revision: 1 Digest: sha256:dbbcbbfbf59b877e (changes whenever the content changes) Timeline: Created: 2026-11-13T04:04:25Z Last changed: 2026-11-13T04:04:25Z Last verified: 2026-11-19T13:42:54Z Next check: 2026-11-20T13:42:54Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of debug adapter | Xdebug | [1] | 2026-11-19 listen port | 9003 | [1] | 2026-11-19 test debug program | vendor/bin/phpunit | [1] | 2026-11-19 test filter arg | $ZED_SYMBOL | [1] | 2026-11-19 diagnostics function | xdebug_info() | [1] | 2026-11-19 Sources: [1] Zed Industries. "zed.dev/docs/languages/php.md". https://zed.dev/docs/languages/php.md Role: primary. Accessed: 2026-11-19T13:42:54Z Quote: "The PHP extension provides a debug adapter for PHP via Xdebug." (Supports: debug adapter) Quote: ""port": 9003" (Supports: listen port) Quote: ""program": "vendor/bin/phpunit"" (Supports: test debug program) Quote: ""args": ["--filter", "$ZED_SYMBOL"]" (Supports: test filter arg) Quote: "Look at the diagnostics log by using the `xdebug_info()` function in the page you're trying to debug." (Supports: diagnostics function) Snapshot SHA-256: 940743d6302978f8ea5a3db85c34457866fb9f55522cdc52b1ec3c79adc4cf62 (captured 2026-11-13T04:04:24Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T04:04:25Z, so the values verified then were kept. Cross-check: not-available at 2026-11-19T13:42:54Z. No independent second source is configured for this entry Last successful check: 2026-11-19T13:42:54Z Last attempt: 2026-11-19T13:42:54Z Notes and limitations: Extracted automatically from a single official source (section "Debugging"). Human-readable page: https://zed.dev/docs/languages/php.html Related: https://latestn.com/tool/zed/troubleshooting/debug-reproducible-crash How do I debug a reproducible Zed crash with a debugger? https://latestn.com/tool/zed/troubleshooting/debug-rust-extension How do I debug my Rust Zed extension? https://latestn.com/tool/zed/troubleshooting/dispatch-header-not-found How do I fix the 'dispatch/dispatch.h' file not found error when building Zed? https://latestn.com/tool/zed/troubleshooting/debug-go-packages-tests How do I debug Go packages or Go tests in Zed? https://latestn.com/tool/zed/troubleshooting/debug-javascript-node How do I set up debugging for JavaScript files with Node in Zed? https://latestn.com/tool/zed/troubleshooting/debug-panics-crashes How do I debug panics and crashes in Zed? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T04:04:25Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/zed/troubleshooting/debug-php/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/zed/troubleshooting/debug-php POST: https://latestn.com/dispute/tool/zed/troubleshooting/debug-php with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/zed/troubleshooting/debug-php?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I debug PHP in Zed? Revision 1, last verified 2026-11-19T13:42:54Z. https://latestn.com/tool/zed/troubleshooting/debug-php (accessed 2026-11-21T09:50:41Z). @misc{LatestN_tool_zed_troubleshooting_debug_php_r1, title = {How do I debug PHP in Zed?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/zed/troubleshooting/debug-php}}, note = {Revision 1; digest sha256:dbbcbbfbf59b877e; last verified 2026-11-19T13:42:54Z; accessed 2026-11-21T09:50:41Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/zed/troubleshooting/debug-php