Repository navigation
docs(xdebug): step through code with PHP Debugger: what works with Trap and how to install it - #387
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #387 +/- ##
=======================================
Coverage 81.87% 81.87%
=======================================
Files 466 466
Lines 19709 19709
=======================================
Hits 16137 16137
Misses 3572 3572 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…ap and how to install it
feat(skill): detect PHP Debugger in the environment check of the trap skill
PHP Debugger, a step debugger built on the code of Xdebug, speaks the same DBGp, so Trap drives its sessions as they are: breakpoints, conditions, exception breaks, the stack, variables, eval and stepping were checked with PHP Debugger 0.6.2 over the UI API and the MCP tools. It hides from `extension_loaded('xdebug')`, so the check of the skill missed it. PIE installs it on Linux and macOS only: the Windows DLLs of its releases are not named the way PIE looks for them.
Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
roxblnfk
force-pushed
the
docs/php-debugger
branch
from
November 24, 2026 18:24
5387a07 to
2b0c0a3
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🔍 What was changed
docs/xdebug.mdgets a PHP Debugger section: Trap takes its sessions as Xdebug's, what it lacks (profiles, traces), how to install it in Docker, on Linux/macOS and on Windows, and itsstart_with_request=yesdefault, which opens a session in Trap for every script.trapskill names PHP Debugger, and itsdetect.phpreports it: the extension hides fromextension_loaded('xdebug'), so the check missed it.Review notes
<xdebug:message exception>,resolved_breakpoints,notify_ok), so no code change was needed.pie install php-debugger/php-debuggerfails on Windows: the release attachesphp_php-debugger-php8.4-nts-windows-x64.dll, PIE looks forphp_php_debugger-0.6.2-8.4-nts-vs17-x86_64.zip. The docs point Windows users to the DLL or the vendor's installer.Checklist
phpdebugger/php(PHP 8.6, PHP Debugger 0.6.2) againsttrap --ui --mcp --xdebugin standalone mode — line, conditional and exception breakpoints, stack, variables, eval, step/run/stop, over the UI API and thexdebug_*MCP toolspie installinphp:8.4-cli; the Windows DLL loads withzend_extension=into PHP 8.4 NTSdetect.phpin thephpdebugger/phpimage and on a host with Xdebugcomposer test,psalm,structarmed(no change insrc/)