DEV Community

Arifin
Arifin

Posted on

Does anyone knows how to debug Volt component in Laravel using vscode?

I'm currently stuck in how to debug logic that is written inside a volt component. I use vscode and xdebug, setting up a breakpoint in regular PHP file is easy (thanks for all the maintainer). But it's not available on PHP logic written in volt component .blade.php.

On regular laravel class:

Image description

On volt component, breakpoint is not available:

Image description

Top comments (0)