VS Code Xdebugging throws DecryptException: The payload is invalid.

Posted 1 year ago by bencarter78


I've just started playing with visual studio code and am trying to set up debugging. I have successfully set it up and debugged a simple php script, however, when I try to debug my L5.4 app I get the following exception being thrown...

Illuminate\Contracts\Encryption\DecryptException: The payload is invalid.

When viewing the app in the browser (when not listening for xdebug) everything works as expected.

Any ideas why it might be getting thrown? Am I missing something in the set up?


Please sign in or create an account to participate in this conversation.

Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up


Reply to

Use Markdown with GitHub-flavored code blocks.