2

Is there a way to increase the character limit when viewing the variables while debugging? I can't view the entire string because it's very long.

screenshot

1 Answers1

4

See this ref.

In launch.json:

{
"version": "0.2.0",
"configurations": [
    {
        ...
        "xdebugSettings": {
            "max_data": 1500   //set a proper number.
        }
    }]
}

Note: Large max_data number may stuck IDE. Could print the variable in terminal using this way.

navylover
  • 12,383
  • 5
  • 28
  • 41