If i try to change the value of a variable in the debugger "Variables" view, inside "Globals", then i get:
Traceback (most recent call last):
File "C:\Programme\eclipse\plugins\org.python.pydev.debug_1.3.8\pysrc\pydevd_vars.py", line 291, in changeAttrExpression
exec '%s=%s' % (attr, expression) in frame.f_globals, frame.f_locals
File "<string>", line 1, in <module>
NameError: name 'Globals' is not defined
I have a workaround /solution for this. Put this in pydevd_vars.py, function "changeAttrExpression":
if attr[:7] == "Globals":
attr = attr[8:]
if attr in frame.f_globals:
frame.f_globals[attr] = eval(expression, frame.f_globals, frame.f_locals)
exec '%s=%s' % (attr, expression) in frame.f_globals, frame.f_locals
Cheers,
Oskar
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Eclipse europe 3.3.0, pyDev 1.3.8
If i try to change the value of a variable in the debugger "Variables" view, inside "Globals", then i get:
Traceback (most recent call last):
File "C:\Programme\eclipse\plugins\org.python.pydev.debug_1.3.8\pysrc\pydevd_vars.py", line 291, in changeAttrExpression
exec '%s=%s' % (attr, expression) in frame.f_globals, frame.f_locals
File "<string>", line 1, in <module>
NameError: name 'Globals' is not defined
I have a workaround /solution for this. Put this in pydevd_vars.py, function "changeAttrExpression":
if attr[:7] == "Globals":
attr = attr[8:]
if attr in frame.f_globals:
frame.f_globals[attr] = eval(expression, frame.f_globals, frame.f_locals)
exec '%s=%s' % (attr, expression) in frame.f_globals, frame.f_locals
Cheers,
Oskar
Help! Indention got lost!
if attr[:7] == "Globals":
....attr = attr[8:]
....if attr in frame.f_globals:
........frame.f_globals[attr] = eval(expression, frame.f_globals, frame.f_locals)
exec '%s=%s' % (attr, expression) in frame.f_globals, frame.f_locals
Please add that to the bugtracker...
Thanks,
Fabio