通过.NET Framework的源$ C ​​$ C步骤? [英] Step through .NET Framework Source Code?

查看:258
本文介绍了通过.NET Framework的源$ C ​​$ C步骤?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道我会怎样来写这个问题,但想步code,因为它经过了.NET类/方法等。

I wasn't sure how to word the question but I would like to step through code as it goes through the .NET classes/methods, etc.

早些时候,我曾问如何查看$ C $下的类在.NET库,我结束了与.net反射,我立刻下载。现在,作为一个例子,我在寻找更多的信息。

Earlier I had asked about how to view the code for the classes in the .NET library and I ended up with .NET Reflector which I promptly downloaded. Now, as an example, I am looking for more info.

我在我的程序的方法,看起来像:

I have a method in my program that looks like:

public bool DoThisJob(string job)
{
  if (jobsICanDo.Contains(job))
           return true;
}

在哪里jobsICanDo是包含不同的工作字符串数组。

Where jobsICanDo is an array of strings containing the different jobs.

当我执行了code,在包含(工作)的方法,我希望能够逐步通过code,因为它去,一路过关斩将参与返回.NET库和类结果

When I execute that code, the "Contains(job)" method, I would like to be able to step through the code as it goes all the way through .NET libraries and classes involved in returning the result.

在简单地说,我是小白,我想了解所有的库是如何工作的。我不只是要接受它的工作原理,并继续前进。

In a nutshell, I am a noob and I want to understand how all the libraries work. I don't just want to accept that it works and move on.

我的具体问题是,现在我有.net反射,可以在所有的.NET库查看code有没有办法让我真切​​地看到这code的作用,看着我的输入横梁通过.NET类和库?

My specific question is now that I have .NET Reflector and can view the code in all the .NET libraries is there a way for me to actually see this code in action and watch as my input traverses through the .NET libraries and classes?

编辑 似乎有至少有点混乱了,究竟是什么,我找的。我设置的断点,如果(jobsICanDo.Contains(工作))。我跑我的程序和它做它的事,当它到达那里不动为止。当踏进$ C $下一线c它只是返回true,并不断前进。我想要做的就是看什么,它包含的方法做,就像我的code中的其余部分。

EDIT There seems to be at least a bit of confusion over what, exactly, I am looking for. I set a breakpoint at the if (jobsICanDo.Contains(job)). I run my program and it does its thing and when it gets there it stops. When step into the next line of code it just returns true and keeps on going. What I want to do is see what that Contains method is doing just like the rest of my code.

推荐答案

是的,使用调试器,但看到<一href="http://blogs.msdn.com/sburke/archive/2008/01/16/configuring-visual-studio-to-debug-net-framework-source-$c$c.aspx">Configuring Visual Studio中调试.NET Framework的源$ C ​​$ C 。

Yes, use the debugger, but see Configuring Visual Studio to Debug .NET Framework Source Code.

这篇关于通过.NET Framework的源$ C ​​$ C步骤?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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