From 051056515c491184a83b3aec924cf68c8dc9e409 Mon Sep 17 00:00:00 2001 From: Dmitry Trofimov Date: Wed, 17 Sep 2014 18:02:13 +0400 Subject: [PATCH] Don't hide locals by globals. --- python/helpers/pydev/pydevd_vars.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/helpers/pydev/pydevd_vars.py b/python/helpers/pydev/pydevd_vars.py index 3ae14ea09899..d85c4c3f2ff9 100644 --- a/python/helpers/pydev/pydevd_vars.py +++ b/python/helpers/pydev/pydevd_vars.py @@ -214,8 +214,8 @@ def getVariable(thread_id, frame_id, scope, attrs): else: # for a frame access both locals and globals as Python does var = {} - var.update(frame.f_locals) var.update(frame.f_globals) + var.update(frame.f_locals) for k in attrList: _type, _typeName, resolver = getType(var)