Home » Php » How to set variable values while debugging in Visual Code using PHP debug?

How to set variable values while debugging in Visual Code using PHP debug?

Posted by: admin July 12, 2020 Leave a comment

Questions:

I’m wondering how to set values of variables that I can see at a breakpoint while debugging in Visual Code.
I’m using Version 1.20.1.

I just can’t press on Set Variable.enter image description here

How to&Answers:

You need to use the DEBUG CONSOLE, and put the variable and the value:

$variable = "value"

Example $variable = "value"