什么是视觉工作室F5,ctrl + F5或运行在视觉工作室之外不同? [英] What is different between visual studio F5, ctrl+F5, or running outside of visual studio?

查看:141
本文介绍了什么是视觉工作室F5,ctrl + F5或运行在视觉工作室之外不同?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在vc ++中编写了一个程序,它在不同的情况下具有不同的行为。



当我使用F5运行它在发布模式下可以正常工作。 p>

当我通过ctrl + F5运行它时,当我开始向程序发送数据时会崩溃。



视觉工作室立即崩溃。



我不知道如何找到错误。关于
的任何想法在这些情况之间有什么不同?

解决方案

运行ctrl + F5将运行应用程序而无需调试器。
http://msdn.microsoft.com/en- US / library / 8b59xk0f(v = vs.90).aspx
这与在发布模式下运行不同。



可以在调试模式下运行应用程序,但没有调试器。
这听起来很蠢,但是如果你想停止控制台在退出时关闭,这是有帮助的。 (如何在退出时停止控制台关闭?) / p>

I have written a program in vc++ that has different behavior in various case as below.

When I run it by F5 it works properly in release mode.

When I run it by ctrl + F5 it crashes when I start to send data to the program.

Outside of visual studio it crashes immediately.

I don't know how to find the bug. Any idea on what is different between these cases?

解决方案

Running ctrl + F5 will run the application without debugger. (http://msdn.microsoft.com/en-US/library/8b59xk0f(v=vs.90).aspx) This is not the same as running in release mode.

You can run your application in debug mode but without debugger. It sounds stupid but is for example helpful if you want to stop the console from closing on exit. (How to stop console from closing on exit?)

这篇关于什么是视觉工作室F5,ctrl + F5或运行在视觉工作室之外不同?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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