简体   繁体   English

如何在Visual Studio中“转到外部代码的定义(F12)”?

[英]How to “Go to definition (F12)” of external code in Visual Studio?

I have ac# solution A in my Visual Studio 2010. I have added a dll of solution B as a Reference. 我在Visual Studio 2010中有一个ac#solution A.我添加了一个dll解决方案B作为参考。 I have build the solution B with "Debug". 我用“Debug”构建了解决方案B.

If I run solution A in debug mode I can debug into solution B (Step Into F11) and see the code. 如果我在调试模式下运行解决方案A,我可以调试到解决方案B(Step Into F11)并查看代码。 That's nice. 真好。 If I am NOT in debug mode and I "Go to definition (F12)" of external code Visual Studio opens a file without the body/logic of the methods :-( It looks something like an Interface. 如果我不处于调试模式并且我“去定义(F12)”的外部代码Visual Studio打开一个没有方法的主体/逻辑的文件:-(它看起来像一个接口。

Is it possible to "Go to definition (F12)" of external code in edit mode? 是否可以在编辑模式下“转到外部代码的定义(F12)”? Do I need a plugin? 我需要一个插件吗?

I do not want to edit the external code. 我不想编辑外部代码。 I just want to read the logic an set break points. 我只想读取逻辑设定的断点。

This situation only happens in non-Debug modes. 这种情况只发生在非调试模式下。 It's better to run both in Debug when you are going to debug and set breakpoints. 在调试和设置断点时,最好在Debug中运行它们。

Run both in the Debug mode. 在调试模式下运行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在Visual Studio中缺少Eclipse键快捷键,转到定义F12并返回Ctrl + F12 - Missing in Eclipse key shortcut as in Visual Studio to go to definition F12 and come back Ctrl+F12 在Visual Studio中使用F12上的VB.net转到元数据 - Go to metadata with VB.net on F12 in visual studio F12查找所有引用,而不去定义 - F12 finds all references, not go to definition 什么是Resharper F12的Visual Studio等效键盘(转到下一个/上一个突出显示)? - What is Visual Studio Keyboard Equivalent of Resharper F12 (Go to the next / previous highlight)? 使用F12在两个Visual Studio解决方案之间导航 - Navigating between two Visual Studio Solutions with F12 F12(转到定义)打开ClassName [from元数据]而不是Source - F12 (Go To Definition) opens ClassName[from metadata] instead of Source 对于非MSDEV项目,如何使F12在MSDEV中工作 - How to make F12 work in MSDEV for non MSDEV project F12跳转到方法 - >跳转后返回上一个方法? - F12 Jump to method -> go back to previous method after making the jump? 转到Visual Studio中的覆盖方法定义 - Go to override method definition in Visual Studio 如何在Visual Studio 2010中将“对象浏览器”变为“转到定义”的“元数据”? - How can I turn “Object Browser” to “Metadata” for “Go to definition” in Visual Studio 2010?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM