c++ - VS2010 构建了一个 exe 但无法调试它提示找不到它

标签 c++ visual-studio-2010

我目前正在开发一个 VS2010 C++ 项目,其中 VS2010 成功地在输出中显示的路径上构建了一个项目

1>  Level2Socket.vcxproj -> C:\Project\LSock.exe
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========

但是当我单击项目并选择“调试”>>“启动新实例”时,Visual Studio 状态

Unable to start program the system cannot find the  C:\Project\LSock.exe file specified. 

我仔细检查了它确实存在的文件的存在。关于我为什么得到这个有什么建议吗?

最佳答案

project -> properties -> debugging , setup Working directory to your Project directory.

关于c++ - VS2010 构建了一个 exe 但无法调试它提示找不到它,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15532458/

相关文章:

c++ - 为什么 socket(PF_INET,SOCK_STREAM,0) 返回 -1?

visual-studio-2010 - 是否有与 Eclipse 的本地历史等效的 Visual Studio?

c++ - Delphi 到 C++ GetModuleBase 函数的转换?

c++ - 获取以毫秒为单位的时间差

c++ - 在通过 scanf 输入 unsigned char 后,变量周围的堆栈已损坏

c++ - 如何在 Visual Studio 2010 中启用 C++ 支持?

javascript - 如何停止 visual studio 在函数定义和立即调用之间插入空格?

visual-studio-2010 - 使 Visual Studio 2010 在代码编辑器中显示更多行

c++ - C++17中不定参数函数的错误

c++ - 另一种语言的 Tesseract setVariable 白名单