如何从 VC 运行应用程序没有调试?
我正在努力学习喜欢 Visual C++ 2010 Express,但这很困难!我刚刚创建了一个“Hello world”控制台应用程序并编译了它 - 没有问题。我现在想运行它。似乎对我来说唯一的选择是在调试器中运行它 - 工具栏上有一个“运行”按钮,但它被禁用。我不想调试它 - 我真的不喜欢调试器!有什么方法可以从 VS IDE 内部运行应用程序吗?
I'm trying to learn to love Visual C++ 2010 Express, but it is difficult! I've just created a "Hello world" console app and compiled it - no problems. I now want to run it. It seems the only option open to me is to run it in the debugger - there is a "Run" button on the toolbar but it is disabled. I don't want to debug it - I really don't like debuggers! Is there any way of just running the app from inside the VS IDE?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果在工具栏中看不到“启动而不调试”命令,请转到“工具 -> 设置 -> 专家设置”。基本设置隐藏了许多您可能想看到的内容。
VC2010专业版好像没有这个开关。
If you can't see the "Start Without Debugging" command in the toolbar, go to "Tools -> Settings -> Expert Settings". Basic Settings hides lots of stuff you probably want to see.
Professional version of VC2010 doesn't seem to have this switch.
编辑:完全公开,我实际上没有在这台计算机上安装 VC++2010 Express,所以我只是即兴发挥。
Edit: Full disclosure, I don't actually have VC++2010 Express installed on this computer, so I'm just sort of winging it here.
如果您希望在菜单栏上而不是在下拉调试菜单中显示“启动而不调试”图标(即使“工具”->“设置”=“基本设置”),请执行以下操作:
工具->“调试”。自定义->命令->(选择菜单栏)->添加命令->调试->启动而不调试->确定。
如果您想更改其位置,请向上/向下移动。
If you want to have a "Start Without Debugging" icon on the menu bar instead of in the drop-down Debug menu (even if Tools->Settings = "Basic Settings"), do this:
Tools->Customize->Commands->(choose Menu bar)->Add Command->Debug->Start Without Debugging->ok.
Then Move Up/Down if you want to change its position.