phpvisual-studio-codexdebug

VS Code with Xdebug does not show full PHP variable value


I'm using a step debugger to debug my code.

I have a json string stored in $x and I need to copy the value. But the value is not showing completly, it just shows half of it, so I can't copy it.

enter image description here

Is there a way to solve it without a workaround e.g. write the value into a file?


Tested with VSC 1.68.1


Solution

  • The solution can be found here.

    Just add this:

    "xdebugSettings": {
        "max_children": 128,
        "max_data": -1,
        "max_depth": 3
    },
    

    to your .vscode/launch.json