【发布时间】:2011-08-22 14:48:27
【问题描述】:
我目前正在尝试用 C# 中的 IronPython 调试器编写一个 IDE。
我可以运行脚本并获取回溯,但我还不能暂停脚本(例如在断点处)。
有可能这样做吗?至少 IronPythonStudio 似乎可以做到这一点。
亲切的问候。
【问题讨论】:
标签: c# debugging ide ironpython breakpoints
我目前正在尝试用 C# 中的 IronPython 调试器编写一个 IDE。
我可以运行脚本并获取回溯,但我还不能暂停脚本(例如在断点处)。
有可能这样做吗?至少 IronPythonStudio 似乎可以做到这一点。
亲切的问候。
【问题讨论】:
标签: c# debugging ide ironpython breakpoints
要暂停 IronPython 脚本,您需要停止回溯函数退出。当 traceback 函数退出时,脚本将继续运行。
Harry Pierson 在creating a lightweight IronPython debugger 上写了一组很棒的帖子,这将是一个很好的起点。他在 Hybrid App Debugging - Threading post 中介绍了暂停 IronPython 脚本。
IronPythonStudio 使用更重量级的 .NET 调试器,它是 Visual Studio 的一部分,不使用回溯。
【讨论】: