A full-featured debug statement manager for PHP: SCM staging guard (strict/warn/lenient), tree view, bookmarks, export, logs & i18n; includes a featured VarDumper insertion tool.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
A VS Code extension focused on managing debug statements in PHP. The main feature is the Debug Manager (tree view, bookmarks, export, logs, i18n), plus a featured VarDumper insertion tool.
Features
Scanning
Automatically scans PHP files
Supports multiple patterns: var_dump, print_r, error_log, debug_backtrace, etc.
Custom patterns
Tree view: file → line → content
Interactions
Jump to location
Clear statements (single/file/global; bookmarked items are protected)
Expand/collapse
Reveal in Manager from SCM warning dialog
Monitoring
Auto refresh on file changes
Manual refresh and auto scan; output channel logs time and results (EN/ZH)
SCM Staging Guard
Modes:
strict: block staging when debug statements exist
warn: unstage first, require “Continue” to re-stage; supports “Reveal Location” and “Reveal in Manager”
lenient: log only
Configurable and enabled by default (strict)
VarDumper Tool (featured)
Shortcut: mac cmd+shift+/, win/linux ctrl+shift+/
Smart insertion after semicolon or into empty block, matching indentation
Avoids arrays/argument lists; warns and skips in strings or incomplete selections