- Create a large dict in your Python code (e.g. 2000 key, values)
- Start Remote Debugger hit a settrace
- Look at the large dict variable in the debugger window
What is the expected result?
Too see all the data in the dict
What happens instead?
A truncated (currently 300 items) list is displayed
The following StackOverflow question describes this problem with a partially working solution
Basically, the PyCharm debugger has a hardcoded limit (currently 300 for me) for how many elements should be displayed.
If I change the _pydevd_bundle/pydevd_resolver.py in the debug egg then debug again, I can see more elements in the list, up to 1000.
If I change the pydevd_resolver.py limit to 2000 though, the limit in the debugger remains at 1000.
Where is this limit of 1000? Can it be changed? Or can we enable better debugging of larger lists?