VS code 变量显示限制设置 debug variables ‘Too large to show contents. Max items to show: 300‘

本文介绍如何在VScode中调整变量显示的默认限制,通过修改pydevd_resolver.py文件中的MAX_ITEMS_TO_HANDLE参数,可以自定义显示更多的数据,适用于需要查看大量变量信息的调试场景。

VS code 变量显示限制的默认设置是300,如果想多显示几组数据就比较麻烦,可以通过修改控制函数来实现自定义的现象。
具体参数在pydevd_resolver.py,路径如下

C:\Users\jackey\.vscode\extensions\ms-python.python-2020.7.96456\pythonFiles\lib\python\debugpy\_vendored\pydevd\_pydevd_bundle\pydevd_resolver.py

修改的MAX_ITEMS_TO_HANDLE即可实现

# Note: 300 is already a lot to see in the outline (after that the user should really use the shell to get things)
# and this also means we'll pass less information to the client side (which makes debugging faster).
MAX_ITEMS_TO_HANDLE = 300
评论 5
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值