是否可以进入使用 pyc 编译的 IronPython dll?

发布于 2024-10-06 15:16:22 字数 272 浏览 0 评论 0原文

我正在 Visual Studio 2008 中运行一个 .NET 3.5 C# 项目。在该项目中,我托管一个 IronPython 脚本,该脚本导入我使用 pyc 编译到 .NET dll 的模块。 IronPython的版本是2.6.1。我已使用 ObjectOperations.GetInstance 和 GetMember 将 python 方法连接到 C# 代码。

当我调试 C# 代码并尝试进入 pyc 生成的 IronPython dll 时,VS 不允许我这样做。有什么办法让我能够进入该代码吗?

I am running a .NET 3.5 C# project in Visual Studio 2008. In the project I am hosting an IronPython script that imports modules that I have compiled to .NET dlls with pyc. The version of IronPython is 2.6.1. I have used ObjectOperations.GetInstance and GetMember to wire up the python methods to the C# code.

When I am debugging the C# code and try to step into the pyc generated IronPython dll, VS won't allow me to do that. Is there any way for me to be able to step into that code?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

孤千羽 2024-10-13 15:16:22

没有办法开箱即用地做到这一点。您需要修改 IronPython/DLR,以便从 ClrModule.CompileToMethod 向下的调用将传递一个选项来发出符号,然后最终调用 LambdaExpression.CompileToMethod 来发出符号。

There is no way to do this out of the box. You'd need to modify IronPython/DLR so that the calls from ClrModule.CompileToMethod down would pass an option to emit symbols and then ultimately call LambdaExpression.CompileToMethod to emit symbols.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文