Home > other >  Vs Code debug variables characters limited to 1026
Vs Code debug variables characters limited to 1026

Time:02-12

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

CodePudding user response:

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.

  • Related