VC_VC2010打开调试单个CPP文件的COUT时候不会出现press any key to continue
2011-09-26 12:22
591 查看
VC2010打开调试单个CPP文件的COUT时候不会出现press any key to continue...或者闪下黑屏,所以微软如下BUG解决方案
The following bug, closed as fixed in Visual Studio 2010 RC, is still there:
https://connect.microsoft.com/VisualStudio/feedback/details/521838/vc-program-launch-with-option-start-without-debugging-would-not-pause-before-exit?wa=wsignin1.0#tabs
In my Makefile project, if I start the program without debugging (CTRL+F5), it always (per default) closed the opened console window. I compared my project file to a standard console application project file, and found the following:
<ItemDefinitionGroup>
<Link>
<SubSystem>Console</SubSystem>
</Link>
</ItemDefinitionGroup>
Inserting this (using a text editor) under <Project> in my makefile project .vcxproj file solves the problem ... It would make sense that is the default behavior (as it is in my vs2005), or that this could be controlled from the standard project dialog.
这里用图片和中文文字解说一下吧 ,供大家参考也便于我以后的使用
1.找到你的工程目录找到.vcxproj文件,将它用记事本或其他的文本编辑打开,记住不用vs2010打开哦,那样只是打开工程。
2.找到如下的一行
</Project>
其实这个是在打开的文件的最后,ok了,记下来,你把上面的 蓝色的文字 copy到</Project>的前面保存,就可以了,这样就可以和以前的vs2005/2008一样了。
其实这个是在打开的文件的最后,ok了,记下来,你把上面的 蓝色的文字 copy到</Project>的前面保存,就可以了,这样就可以和以前的vs2005/2008一样了。
The following bug, closed as fixed in Visual Studio 2010 RC, is still there:
https://connect.microsoft.com/VisualStudio/feedback/details/521838/vc-program-launch-with-option-start-without-debugging-would-not-pause-before-exit?wa=wsignin1.0#tabs
In my Makefile project, if I start the program without debugging (CTRL+F5), it always (per default) closed the opened console window. I compared my project file to a standard console application project file, and found the following:
<ItemDefinitionGroup>
<Link>
<SubSystem>Console</SubSystem>
</Link>
</ItemDefinitionGroup>
Inserting this (using a text editor) under <Project> in my makefile project .vcxproj file solves the problem ... It would make sense that is the default behavior (as it is in my vs2005), or that this could be controlled from the standard project dialog.
这里用图片和中文文字解说一下吧 ,供大家参考也便于我以后的使用
1.找到你的工程目录找到.vcxproj文件,将它用记事本或其他的文本编辑打开,记住不用vs2010打开哦,那样只是打开工程。
2.找到如下的一行
</Project>
其实这个是在打开的文件的最后,ok了,记下来,你把上面的 蓝色的文字 copy到</Project>的前面保存,就可以了,这样就可以和以前的vs2005/2008一样了。
其实这个是在打开的文件的最后,ok了,记下来,你把上面的 蓝色的文字 copy到</Project>的前面保存,就可以了,这样就可以和以前的vs2005/2008一样了。
相关文章推荐
- vs下c++中main _tmain以及控制台程序结束后不出现press any key to continue问题
- 虚拟机开机时出现Press ESC in 5 seconds to skip startup.nsh, any other key to continue问题的解决办法
- 如何让VS.net中的控制台程序出现Press any key to continue字样?
- U盘安装Ubuntu15.04 出现boot failed: please change disks and press a key to continue 错误
- vs2010运行没有“press any key to continue...”
- 使用Homebrew管理你的mac开发包( Press RETURN to continue or any other key to abort)
- 使用chrome调试ajax加载本地文件的时候出现Failed to load resource: Origin null is not allowed by Access-Control-Allow
- Press any key to continue 原来是 这么写出来的
- Rufus安装Win7操作系统出现“press any key to boot from usb”解决方案
- 在Java中如何实现“Pless presss any key to continue.”
- Subject :I need to "press any key to continue"
- 在Java中如何实现“Pless presss any key to continue.”
- line 1 of the inf file winnt.xpe is invalid setup cannot continue. press any key to exit
- cout<<"Press any key to exit!\n"<<endl;
- 三星笔记本安装系统时报错:image failed to verify with * access denied* press any key to continue.
- 系统出现“NTLDR is missing press any key to restart”问题解决方案
- VC调试模式下does not contain debug information. Press OK to Continue
- 在打开VS多工程工程的时候,如何查看某一个cpp文件是属于哪一个工程的
- 编辑单个CPP文件,出现1>LIBCMTD.lib(crt0.obj) : error LNK2019: 无法解析的外部符号 _main,该符号在函
- 【Debug】双击cpp文件无法直接打开,提示“向程序发送命令时出现问题”