2011-08-22 93 views
3

我目前正在尝试在C#中用IronPython的Debugger编写一个IDE。暂停执行嵌入式IronPython

我可以运行脚本并获取回溯,但我还无法暂停脚本(例如,在断点处)。

有没有可能这样做?至少看起来IronPythonStudio可以做到这一点。

亲切的问候。

回答

1

要暂停IronPython脚本,您需要停止退出追踪功能。当追踪功能退出时,脚本将继续运行。

Harry Pierson在creating a lightweight IronPython debugger上写了一篇很棒的帖子,这将是一个很好的起点。他涵盖了暂停Hybrid App Debugging - Threading post中的IronPython脚本。

IronPythonStudio使用更重的.NET调试器,它是Visual Studio的一部分,不使用回溯。