白细胞介素水平code调试 [英] IL level code debugger

查看:142
本文介绍了白细胞介素水平code调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有在VS插件或独立的应用程序的任何形式的IL级调试器?

Is there any IL level debugger in form of a VS plugin or standalone application?

Visual Studio的调试器是伟大的,但它可以让你在任HLL code级或汇编语言,你不能调试IL调试。 看来,在某些情况下,有机会在IL级调试它将是有益的。

Visual studio’s debugger is great, but it allows you to debug on either HLL code level or assembly language, you can’t debug IL. It seems that in some situations it would be useful to have an opportunity to debug at IL level.

在特定的可能调试在code一个问题,你没有来源时会有所帮助。

In particular it might be helpful when debugging a problem in the code that you don't have the source of.

这是值得商榷的,如果当你没有来源,但无论如何,它实际上是有用的调试IL。

It is arguable if it is actually useful to debug IL when you don't have the source, but anyway.

推荐答案

要做到这一点,最好的方法是使用ILDASM拆解管理的二进制文件,这将产生IL指令。然后重新编译使用ILASM,当你火起来的Visual Studio调试器IL源$ C ​​$ C,你将能够逐步通过原始IL。

The best way to do this is to use ILDASM to disassemble the managed binary, which will generate the IL instructions. Then recompile that IL source code using ILASM, when you fire up the Visual Studio debugger you will be able to step through the raw IL.

  1. 在反汇编foo.exe的/OUT=foo.exe.il / SOURCE
  2. 在ILASM foo.exe.il / DEBUG

我已经写了关于这个主题的一篇博客文章: 如何调试编译器生成code

I've written a blog post about this topic at: How to debug Compiler Generated code.

这篇关于白细胞介素水平code调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆