vs code 调试时查看数组全部元素


vs code 在查看数组元素时,默认只能看 32 个,如果需要查看更多,可以通过修改 launch.json 文件来实现:

添加 xdebugSettings

"xdebugSettings": {
     "max_children": 999,
}

找到 launch.json 文件

参考:https://stackoverflow.com/questions/49752153/visual-studio-code-debugging-array-evaluation