From e9a39f7ca5cb0f02355b3449c138ebb65ef2dc0e Mon Sep 17 00:00:00 2001 From: Pavel Minaev Date: Thu, 14 Dec 2023 13:57:52 -0800 Subject: [PATCH] Fix #1477: namedtuple are not rendered in the variable browser as expected Significantly increase safe repr limits for strings and collections. --- .../_vendored/pydevd/_pydevd_bundle/pydevd_safe_repr.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_safe_repr.py b/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_safe_repr.py index f1b64b753..db14fc355 100644 --- a/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_safe_repr.py +++ b/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_safe_repr.py @@ -20,7 +20,7 @@ class SafeRepr(object): # most level, and truncated to maxstring_inner characters inside # collections. maxstring_outer = 2 ** 16 - maxstring_inner = 30 + maxstring_inner = 128 string_types = (str, bytes) bytes = bytes set_info = (set, '{', '}', False) @@ -31,7 +31,7 @@ class SafeRepr(object): # Collection types are recursively iterated for each limit in # maxcollection. - maxcollection = (15, 10) + maxcollection = (60, 20) # Specifies type, prefix string, suffix string, and whether to include a # comma if there is only one element. (Using a sequence rather than a @@ -60,7 +60,7 @@ class SafeRepr(object): # All other types are treated identically to strings, but using # different limits. maxother_outer = 2 ** 16 - maxother_inner = 30 + maxother_inner = 128 convert_to_hex = False raw_value = False