diff --git a/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_plugin_utils.py b/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_plugin_utils.py index df1f50c1..56f1e075 100644 --- a/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_plugin_utils.py +++ b/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_plugin_utils.py @@ -199,7 +199,7 @@ class PluginManager(object): return None - def change_variable(self, frame, attr, expression): + def change_variable(self, frame, attr, expression, scope=None): for plugin in self.active_plugins: ret = plugin.change_variable(frame, attr, expression, self.EMPTY_SENTINEL) if ret is not self.EMPTY_SENTINEL: diff --git a/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_suspended_frames.py b/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_suspended_frames.py index 257c236d..858a8d76 100644 --- a/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_suspended_frames.py +++ b/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_suspended_frames.py @@ -200,7 +200,7 @@ class _ObjectVariable(_AbstractVariable): return children_variables - def change_variable(self, name, value, py_db, fmt=None): + def change_variable(self, name, value, py_db, fmt=None, scope: ScopeRequest | None=None): children_variable = self.get_child_variable_named(name) if children_variable is None: return None @@ -257,7 +257,6 @@ class _FrameVariable(_AbstractVariable): def change_variable(self, name, value, py_db, fmt=None, scope: ScopeRequest | None=None): frame = self.frame - pydevd_vars.change_attr_expression(frame, name, value, py_db, scope=scope) return self.get_child_variable_named(name, fmt=fmt, scope=scope) diff --git a/src/debugpy/_vendored/pydevd/pydevd_plugins/django_debug.py b/src/debugpy/_vendored/pydevd/pydevd_plugins/django_debug.py index 39fcb111..dca3ed8d 100644 --- a/src/debugpy/_vendored/pydevd/pydevd_plugins/django_debug.py +++ b/src/debugpy/_vendored/pydevd/pydevd_plugins/django_debug.py @@ -427,7 +427,7 @@ class DjangoTemplateSyntaxErrorFrame(object): self.f_trace = None -def change_variable(frame, attr, expression, default): +def change_variable(frame, attr, expression, default, scope=None): if isinstance(frame, DjangoTemplateFrame): result = eval(expression, frame.f_globals, frame.f_locals) frame._change_variable(attr, result) diff --git a/src/debugpy/_vendored/pydevd/pydevd_plugins/jinja2_debug.py b/src/debugpy/_vendored/pydevd/pydevd_plugins/jinja2_debug.py index 5d4bb589..5d1ae874 100644 --- a/src/debugpy/_vendored/pydevd/pydevd_plugins/jinja2_debug.py +++ b/src/debugpy/_vendored/pydevd/pydevd_plugins/jinja2_debug.py @@ -249,7 +249,7 @@ class Jinja2TemplateSyntaxErrorFrame(object): self.f_trace = None -def change_variable(frame, attr, expression, default): +def change_variable(frame, attr, expression, default, scope=None): if isinstance(frame, Jinja2TemplateFrame): result = eval(expression, frame.f_globals, frame.f_locals) frame._change_variable(frame.f_back, attr, result)