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

添加 xdebugSettings

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

找到 launch.json 文件
vs code 调试时查看数组全部元素

 

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

 

 

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

相关文章:

  • 2021-09-23
  • 2021-07-01
  • 2022-12-23
  • 2022-01-06
  • 2022-12-23
  • 2021-11-05
  • 2022-01-22
  • 2021-12-24
猜你喜欢
  • 2022-12-23
  • 2022-03-06
  • 2021-09-01
  • 2021-06-10
  • 2021-12-03
  • 2022-12-23
相关资源
相似解决方案