admin管理员组文章数量:1122832
In the debugger that I have been developing trepan3k, I would when stopped at a "return" event, I'd like the ability for the user to be able to change the return value that the caller sees. Can that be done without having the user run a modified Python?
Some background. Recall that at one sys.settrace() event is a "return" event and the callback hook gives as an argument to this callback the value will be returned to the calling function.
Inside the debugger, I would like to allow the user to be able to change this value. Of course, one can change the Python interpreter, but this is a bit drastic.
Compiling an extension in C would be okay - the feature then would be optional.
本文标签:
版权声明:本文标题:debugging - In a Python debugger how would I be able to setting a return value in a return event? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736304495a1932255.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论