VSCode Laravel Xdebug Error: Class "Illuminate\Support\Facades\Route" not found

Viewed 546

enter image description here

I installed Xdebug.

Xdebug Launch currently open script

Error: Class "Illuminate\Support\Facades\Route" not found

Why is there an error?

1 Answers

The VS Code plugin by default instructs Xdebug to set a break point on all Exceptions.

This is something that you can turn off in the lower left of your screen, by unticking [ ] Everything and [ ] Exceptions in the Breakpoints tab:

enter image description here

Related