且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

从 C# 调试 powershell 脚本文件 (PS1)

更新时间:2023-01-23 10:42:19

有可能,但不是特别可行.您必须直接与运行空间的调试器事件进行交互,并且基本上构建您自己的引擎,将其集成到 Visual Studio 中.这将是相当耗时的,这就是为什么还没有完成的原因.

It's possible, but not particularly feasible. You have to directly interact with the runspace's debugger events, and essentially build your own engine integrating that into Visual Studio. This would be quite a time consuming, which is why it hasn't been done.