A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2007-February/070884.html below:

[Python-Dev] Changing a value in a frame (for a debugger)

[Python-Dev] Changing a value in a frame (for a debugger) [Python-Dev] Changing a value in a frame (for a debugger)Fabio Zadrozny fabiofz at gmail.com
Wed Feb 7 01:42:30 CET 2007
Hi All,

I'm currently trying to change the value for a variable in the debugger
using:

frame = findFrame(thread_id, frame_id)
exec '%s=%s' % (attr, expression) in frame.f_globals, frame.f_locals

it works well when the frame for the change is the topmost frame, but fails
otherwise...

I found some references speaking about some issue with PyFrame_FastToLocals
which made it appear like this was not possible to do... so, basically, is
there some way to make this work from python (changing a variable having a
given frame) or not?

Thanks,

Fabio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-dev/attachments/20070206/a61ef453/attachment.htm 
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4