2011-08-22 96 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的一部分,不使用回溯。