Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=4469801
By: oskar_heck
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_v
ars.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
______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=293649
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Pydev-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pydev-users