如果我添加断点,Visual C ++ 2013会挂起... [英] Visual C++ 2013 hangs if I add breakpoints...
问题描述
大家好,
这让我浪费了很多时间......
如果我让我的程序在没有激活任何断点的情况下运行,我正在工作的应用程序或多或少地按照我的预期工作。
因为它只能或多或少地起作用期待,我试图通过设置一些断点来调试它,并尝试跟踪引擎盖下发生的事情。
问题是当我到达断点时无法继续,Visual Studio标题栏指出: PROJECT_NAME(正在运行) - Microsoft Visual Studio(无响应)。
我可以' t停止程序既不是MVC,除非我强迫它关闭。
当发生这种情况时,我有2 GB的可用内存......而且只有在尝试之后才会发生使用断点检查代码。
当然我已经选择了调试模式。
And当这种情况发生时我甚至强迫MVC关闭,这是我项目的过程还在运行... X |
任何提示?
一如既往地谢谢你。 :thumbsup:
Hello all,
This got me wasting a lot of time...
if I leave my program running without activating any breakpoint, the application I'm working in works more or less as I expect.
As it only works more or less as I expect, I'm trying to debug it by setting some breakpoints and try to follow what is happening under the hood.
The problem is that when I reach the breakpoint I can't continue, Visual Studio title bar states: PROJECT_NAME (Running) - Microsoft Visual Studio (Not Responding).
I can't stop the program neither the MVC unless I force it to shut down.
I have 2 GB of free memory when this happens... and it only happens after trying to examine code using breakpoints.
Of course I've got the debug mode selected.
And when this happens even I force MVC to close, the process of my project is still running... X|
Any hint?
As always thank you in advance. :thumbsup:
推荐答案
手动清理PCH,PDB和SDF文件,然后进行重建 - 我看到VS在大项目上做了一些奇怪的事情当这些弯曲时
manually clean up the PCHs, the PDBs and the SDF files, then do a rebuild - i've seen VS do some bizarre things on big projects when these get bent
我在这里遇到了同样的问题。在调试过程中突然VS冻结,只有VS的重启确实有帮助,直到下一次冻结。通过单击我的应用程序中的某些选项卡可以轻松重现冻结。谷歌先生给我看了一个网站,其中的人在命令行(devenv.exe / resetsettings)进行了VS的重置设置。
之后我重新启动了VS并重新开始调试。我点击了与冻结时相同的标签,它在几天前启用的断点处停止。
显然VS在断点及其设置方面遇到了一些问题。有时它们会被破坏。
我现在的解决方案是:
- 使用工具/导入和导出设置/导出保存您喜欢的设置。
- 当VS冻结时,执行工具/导入和导出设置/重置所有设置。
- 然后导入已保存的设置。
......我知道答案来得太晚了一年,但未来可能对其他人有所帮助。
I've had the same issue here. Suddenly VS freezes during debugging and only a restart of VS did help until the next freeze. It was easy to reproduce the freeze by clicking some tabs in my app. Mr. Google showed me a site where the guys did a resetsettings of VS at the command line (devenv.exe /resetsettings).
After this I restarted VS and started to debug again. I clicked the same tabs as when it freezes and it stopped at a breakpoint enabled some days ago.
Obviously VS has got some problems with breakpoints and its' settings. Sometimes they get corrupted.
My solution now is:
- Save your favourite settings with Tools/Import and Export Settings/Export.
- When VS freezes do a Tools/Import and Export Settings/Reset all settings.
- Then do an import of your saved settings.
...I know the answer comes more than a year too late, but it might help others in future.
这篇关于如果我添加断点,Visual C ++ 2013会挂起...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!