Skip to content

Commit e9a39f7

Browse files
Pavel Minaevint19h
authored andcommitted
Fix #1477: namedtuple are not rendered in the variable browser as expected
Significantly increase safe repr limits for strings and collections.
1 parent 2888f72 commit e9a39f7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_safe_repr.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class SafeRepr(object):
2020
# most level, and truncated to maxstring_inner characters inside
2121
# collections.
2222
maxstring_outer = 2 ** 16
23-
maxstring_inner = 30
23+
maxstring_inner = 128
2424
string_types = (str, bytes)
2525
bytes = bytes
2626
set_info = (set, '{', '}', False)
@@ -31,7 +31,7 @@ class SafeRepr(object):
3131

3232
# Collection types are recursively iterated for each limit in
3333
# maxcollection.
34-
maxcollection = (15, 10)
34+
maxcollection = (60, 20)
3535

3636
# Specifies type, prefix string, suffix string, and whether to include a
3737
# comma if there is only one element. (Using a sequence rather than a
@@ -60,7 +60,7 @@ class SafeRepr(object):
6060
# All other types are treated identically to strings, but using
6161
# different limits.
6262
maxother_outer = 2 ** 16
63-
maxother_inner = 30
63+
maxother_inner = 128
6464

6565
convert_to_hex = False
6666
raw_value = False

0 commit comments

Comments
 (0)