patrick-levesque/
herd-xdebug-toggler
g4t.io

Herd Xdebug Toggler for Visual Studio Code

20 views 7 stars by Yannick Lyn Fatt

Herd Xdebug toggler extension for VS Code

README from patrick-levesque/herd-xdebug-toggler Open on GitHub →

Herd Xdebug Toggler

A Visual Studio Code extension for managing Xdebug configurations in Laravel Herd.

Features

  • Enable or disable the Xdebug extension for the current project's PHP version from the Command Palette.
  • Automatically detects active debug sessions or breakpoint changes and toggles Xdebug accordingly.
  • Restarts Herd services seamlessly when required to apply configuration changes.
  • Customizable detection modes: choose between detecting debug sessions or breakpoint changes.
  • Supports macOS and Windows.
  • Integration with Herd Pro Xdebug Detection (macOS only).

Usage

  • Run “Enable Xdebug” or “Disable Xdebug” from the Command Palette (⌘⇧P / Ctrl+Shift+P) to enable or disable Xdebug manually.
  • When Automatic Detection is enabled, the extension will toggle Xdebug automatically based on your chosen detection mode.

Requirements

This extension is currently designed to work exclusively with Laravel Herd on macOS and Windows.

Its primary function is to enable or disable the Xdebug PHP extension in Herd's PHP configuration files. It does not modify other configuration options automatically. Make sure your php.ini files include the following Xdebug settings (see the Herd docs for macOS / Windows):

xdebug.mode=debug,develop
xdebug.start_with_request=yes
xdebug.start_upon_error=yes

Extension Settings

Automatic Detection

When enabled, Xdebug will be toggled automatically during debug sessions or breakpoint changes.

Detection Mode

Specifies how automatic detection operates (only applies when Automatic Detection is enabled):

  • Debug Session (default): Enables Xdebug when a debug session starts and disables it when the session ends. This mode is more reliable and ensures Xdebug is active only when needed.

  • Breakpoint Detection: Monitors breakpoints in the current workspace and enables Xdebug when a breakpoint is added. Xdebug is disabled when all breakpoints are removed. At least one breakpoint must be toggled to activate Xdebug after opening a project.

Show Notifications

When enabled, notifications appear when Xdebug is enabled or disabled. If disabled, logs remain available in the Output → Herd Xdebug Toggler channel.

Herd Pro Xdebug Detection (macOS only)

When enabled, integrates with Herd Pro Xdebug Detection to automatically route requests to a PHP process with Xdebug, without requiring Xdebug to be globally enabled and Herd services to restart. Works even for embedded web applications where Xdebug browser extensions cannot be used. Requires Herd Pro.

More from the ecosystem

durable-workflow/
workflow
g4t.io
9 1,292

Durable Workflow: Long-Running Workflows for Laravel

Embedded durable workflow runtime and orchestration engine for Laravel applications.

durable-workflow/workflow via Laravel News
packstub/
session-replay
g4t.io
14 52

Session Replay for Laravel: Self-Hosted Browser Recordings

Session replay for Laravel: record what a person did in the browser with rrweb, keep the recording on your own disk and database, and watch it behind a gate you define — masked inputs by default, errors, failed Livewire requests and web vitals marked on the timeline, a link to the replay in every log line. packstub/filament-session-replay adds the sessions to a Filament panel.

packstub/session-replay via Laravel News
cyberwizard-dev/
schedule-catchup
g4t.io
17

Replay Missed Laravel Scheduled Tasks With Schedule Catchup

Schedule Catchup replays missed Laravel scheduled tasks after downtime, with opt-in recovery, bounded retries, and access to the original scheduled date.

cyberwizard-dev/schedule-catchup via Laravel News