This content originally appeared on DEV Community and was authored by Yasser Elgammal
Debugging with dd() is part of every Laravel developer’s workflow.
But forgetting a debug statement inside a controller or Blade file can break production or interrupt API responses.
Laravel Debug Remover automatically scans and removes all dd() debug statements from your PHP and Blade files.
Key Features
Two Modes
- Current File – Cleans debug statements only in the file you’re working on
- Entire Workspace – Scans and cleans your whole project
Smart Exclusions
Automatically skips:
vendornode_modulesstoragebootstrap/cache
You can customize the ignored folders from the extension settings.
Fully Configurable
Add your own directory exclusions via settings.json.
Perfect for large Laravel or monolithic codebases.
High Performance
Fast and optimized scanning — ideal for projects with hundreds of files.
Usage
Press CTRL + P and choose:
- Remove all debug statements (Current File)
- Remove all debug statements (Entire Workspace)
Supports Both PHP & Blade
Blade templates are parsed safely without breaking UI or logic.
The extension intelligently handles both PHP and Blade syntaxes.
Download
VSCode Marketplace:
Download from VSCode Marketplace
Final Thoughts
This extension solves a common and painful issue every Laravel developer faces.
If it prevents a production mistake or speeds up your workflow, then it has achieved its goal.
This content originally appeared on DEV Community and was authored by Yasser Elgammal