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

1

20

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

Octave answered 3/3, 2018 at 4:52 Comment(0)
I
38

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

$variable = "value"

Example $variable = "value"

Intelligentsia answered 29/10, 2018 at 20:31 Comment(1)
You can open the console with Ctrl+Shift+Y and drag it next to the terminal tab via your mouseLentha

© 2022 - 2024 — McMap. All rights reserved.