无法调试x64版本的程序 [英] Cannot debug x64 version of program

查看:330
本文介绍了无法调试x64版本的程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用VS 2015社区版。



刚刚将x32项目转换为x64项目。不在VS调试模式下运行时,x64版本运行正常。从VS运行时,VS会显示以下消息:


无法运行.. \ x64 \Debug \program.exe。


x64编译的程序位于:.. \ Debug \program.exe


如何告诉VS程序位于:.. \ Debug \ program .exe



解决方案

嗯, Visual Studio默认将平台添加到x64项目的路径中,因此您可以并排构建不同的配置,而无需在每次构建时不断覆盖所有文件。


我的建议是首先将事物改回默认值。


首先是链接器的输出文件设置:



确保将其设置为


( OUTDIR)

(的TargetName)

Using VS 2015 Community Version.

Just converted a x32 project to a x64 project. x64 version runs fine when not run in VS debugging mode. When run from VS, VS displays the message:

Unable to run ..\x64\Debug\program.exe.

The x64 compiled program is at: ..\Debug\program.exe

How to tell VS the program is at: ..\Debug\program.exe

解决方案

Well, Visual Studio defaults to adding the platform to the x64 project's path so you can build the different configurations side by side without constantly overwriting all of the files every time you build it.

My suggestion would be to change things back to the default values first of all.

First would be the linker's Output File setting:

Make sure this is set to


(OutDir)


(TargetName)


这篇关于无法调试x64版本的程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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