Visual Studio 2010 IDE中的调试类问题 [英] Problem with debugging class in Visual Studio 2010 IDE

查看:65
本文介绍了Visual Studio 2010 IDE中的调试类问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!

我遇到了奇怪的问题.似乎我的Visual Studio 2010 IDE讨厌我的类文件之一.我的类文件仅包含(ui)组件和数据库之间的静态businesslogic类.

我发现,当我在ide中打开该文件或只是在其中添加断点并选择开始调试"时, ide会冻结.当我选择编译时,就可以了.

如果我不打开问题文件并在使用该类的文件中添加断点,则可以调试我的文件,但是退出调试时会冻结(因为在调试过程中打开了文件?).我确定该文件在几周前就可以正常工作了.

我尝试用另一台计算机调试相同的解决方案,并且能够调试并且做我想做的事而不会崩溃.

恐怕无法粘贴我班上的代码,但我希望您能提出建议以解决此问题.我个人认为它比类本身更多的ide/computer/debug设置问题.
希望你有主意

干杯!

Hi all!

I ran odd problem. It seems that my Visual Studio 2010 IDE hates one of my class file. My class file contains just static businesslogic class between (ui) component and database.

I found out that when I open that file in ide or just add breakpoint in it and choose "start debugging" ide will freeze. When I choose compile, it will do it just fine.

If I dont open my problem file and add breakpoint to files which uses that class then i can debug trough my file just fine but when exiting debugging ide will freeze (because the file is opened during debugging?). Im sure that file worked just fine couble of weeks ago.

I tried to debug same solution with another computer and I was able to debug and do what ever I wanted without crashes.

Im afraid that cannot paste code of my class but I hope you could give advices to solve this thing. I personally think its more ide/computer/debug setting problem than class itself..

Hope you got idea

Cheers!

推荐答案

正如SA所提到的,问题并不出在您的代码(或解决方案)上,因为它可以在另一台机器上正常工作.

我建议以下内容:
-彻底清洁解决方案:删除所有temporay文件和* .ncb文件(智能文件)
-重建
-如果这不能解决问题,请重新安装IDE.
-如果仍然不能解决问题,则问题很可能出在您的机器上,并且SA是正确的:我们无能为力...


As SA mentioned, the problem doesn''t come from your code (or solution) since it works fine on a different machine.

I would suggest the followings:
- Clean your solution completely: delete all temporay files and *.ncb files (intellisense files)
- Rebuild
- If this doesn''t solve the problem, re-install your IDE.
- If this still doesn''t solve the problem, the problem most likely comes from your machine and SA is right: we can''t do anything...


raistu写道:

通过删除已解决问题的智能感知文件



By deleting intellisense files fixed that issue





这些文件由IDE自动生成.删除它们不是问题,因为它们仅用于帮助更快地编码.如果您真的在智能方面有太多问题,可以将其禁用:
http://msdn.microsoft.com/en-us/library/ecfczya1 (v = vs.80).aspx [



Theses file are generated automatically by the IDE. Deleting them is not a problem since they are used only to help coding faster. If you really have too many problems with intellisence, you can disable it:
http://msdn.microsoft.com/en-us/library/ecfczya1(v=vs.80).aspx[^]


不!不要期望任何帮助.您的问题不提供任何需要帮助的问题.
您所描述的通常不会发生.

您会看到:

我尝试用另一台计算机调试相同的解决方案,并且能够调试并做我想做的事而不会崩溃.
这清楚地表明您的系统混乱.这完全是您的问题,甚至不是您的项目问题.您怎么能期望有人根据您的描述(您对自己还不完全了解)来修复整个系统?要合乎逻辑.

抱歉,
—SA
No! Don''t expect any help. You Question does not provide any matter needed to help you.
What you describe normally does not happen.

You see:

I tried to debug same solution with another computer and I was able to debug and do what ever I wanted without crashes.
This is a clear indication of mess-up in your system. This is entirely your problem and not even a problem of your project. How can you expect anyone to fix your whole system guided by your description which you do not completely understand yourself? Be logical.

Sorry,
—SA


这篇关于Visual Studio 2010 IDE中的调试类问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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