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





