启用和禁用"步入"在Visual Studio解决方案的调试上的某些项目 [英] Enable and disable "Step into" debugging on certain project in a Visual Studio solution

查看:109
本文介绍了启用和禁用"步入"在Visual Studio解决方案的调试上的某些项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有四扇C#项目Visual Studio解决方案。我想踏入从我的主要项目的解决方案配套项目的代码,但是当我使用步入键,它只是跳过该呼叫转变的其他项目。我已经设置断点配套项目,他们忽略了,我不能为我的生命得到它步入到该项目的任何引用。



一切都被设置为编译为调试,和我见过的Visual Studio警告我说,我的断点不会前撞 - 它不这样做,在这种情况下。这是因为虽然它看起来好像我的代码将调试,但随后在运行时,有一个设置的地方,告诉Visual Studio中不要踩通过该项目的代码。在我的解决方案,调试中的所有其他项目没有任何问题。



我已检查内容框中会导致此行为?



更新CLARITY :在仅我的代码选项当前已禁用。此外,由于代码属于我的相同的解决方案项目,我不认为只要我的代码选项适用于这里。我认为这仅适用于预编译的,我没有的源代码,但因为我有我的项目源,我不认为这个选项没有任何影响。


< DIV CLASS =h2_lin>解决方案

有一件事要检查的是你的配套项目集尚未安装在GAC。打开命令提示符,运行以下命令以确保...



GACUTIL / L的的AssemblyName


I have a Visual Studio solution with four C# projects in it. I want to step into the code of a supporting project in the solution from my main project, but when I use the "Step into" key, it just skips over the call into that other project. I've set breakpoints in the supporting project, and they're ignored, and I can't for the life of me get it to step into any references to that project.

Everything is set to compile as "Debug", and I've seen Visual Studio warn me that my breakpoints won't be hit before - it doesn't do that in this case. It's as though it looks as though my code will debug, but then at run-time, there's a setting somewhere that tells Visual Studio not to step through the code in that project. All the other projects in my solutions debug without problems.

What box have I checked to cause this behavior?

UPDATE FOR CLARITY: The "Just my code" option is currently disabled. Also, since the code belongs to a project in my same solution, I don't think the "Just my code" option applies here. I thought it only applied to pre-compiled code that I didn't have the source for, but since I have the source in my project, I don't think this option has any effect.

解决方案

One thing to check for is that your supporting project assembly has not been installed in the GAC. Open a command prompt and run the following to make sure...

gacutil /l assemblyName

这篇关于启用和禁用&QUOT;步入&QUOT;在Visual Studio解决方案的调试上的某些项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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