简体   繁体   English

Visual Studio 2010 在调试 C 时挂起

[英]Visual Studio 2010 hangs when debugging C

So I'm just starting out with Visual Studio 2010, which is what they gave us at the university for our lessons in C language.所以我刚开始使用 Visual Studio 2010,这是他们在大学为我们提供的 C 语言课程。

I wrote the simplest thing I could think of, just to test it out.我写了我能想到的最简单的东西,只是为了测试一下。 It's a single printf command, naturally with the appropriate library included and a "main" function.这是一个单一的 printf 命令,自然包含适当的库和一个“主”函数。

#include <stdio.h>
void main() 
{
    printf("Hello world");
}

Compilation goes through just fine, but when I start the program without debugging it just shows me an empty screen.编译进行得很好,但是当我在没有调试的情况下启动程序时,它只显示一个空屏幕。 Debugging the program freezes VS altogether.调试程序会完全冻结 VS。

Asked my teacher and professor, asked my student peers, asked Google, and no proper answer so far.问了我的老师和教授,问了我的同学,问了谷歌,至今没有正确的答案。 I've tried reinstalling Visual Studio twice.我已经尝试重新安装 Visual Studio 两次。

Does anyone have a clue as to what's going on?有没有人知道发生了什么?

If may be attempting to download public symbol files.如果可能正在尝试下载公共符号文件。 Take a look at this answer to see how to disable this.看看这个答案,看看如何禁用它。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM