Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>PHP Debug ManagerNew to Visual Studio Code? Get it now.
PHP Debug Manager

PHP Debug Manager

aaron_so_cool

|
5 installs
| (0) | Free
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.
Copied to clipboard
More Info

English | 简体中文

PHP Debug Manager (with Featured VarDumper tool)

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

Configuration (example)

{
  "phpVarDumper.customPatterns": ["var_dump", "print_r", "error_log", "debug_backtrace", "die", "exit"],
  "phpVarDumper.autoScan": true,
  "phpVarDumper.scanOnStartup": true,
  "phpVarDumper.showStatusBar": true,
  "phpVarDumper.stagingGuard.enabled": true,
  "phpVarDumper.stagingGuard.mode": "strict",
  "phpVarDumper.language": "system"
}

Internationalization

  • Manifest strings follow VS Code UI language
  • Runtime strings (dialogs, status bar, logs, tree labels) switchable via setting

Commands

Command Shortcut Description
phpVarDumper.dumpVariable mac: cmd+shift+/ / win/linux: ctrl+shift+/ Insert var_dump statement
phpVarDumper.debugManager.refresh - Refresh list
phpVarDumper.debugManager.focus - Focus manager view
phpVarDumper.debugManager.clearAll - Clear all statements
phpVarDumper.debugManager.export - Export list
phpVarDumper.debugManager.scanNow - Scan now

Performance (example projects)

  • Scan < 2s for 1000+ files
  • Low memory footprint during scan

Implementation (overview)

  • Efficient file filtering and caching; incremental scan
  • Output logs for scan duration and results; guard integrates with repository state changes

License & Support

  • MIT License
  • Issues: GitHub repository

Keep your repo clean with organized debugging.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft