VS2008 Win7 64调试 [英] VS2008 Win7 64 Debug

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

问题描述



我刚刚开始在64位Windows 7的VS2008下的WPF/Prism项目中进行一些开发工作.

我的App.xaml文件中包含以下行:

#if (DEBUG)
  RunInDebugMode();
#else
  RunInReleaseMode();
#endif



由于某些原因,尽管在VS2008中按F5键时,尽管它是在调试模式下构建的,但它始终开始始终以发布模式运行.如何解决?

干杯,

解决方案

语录:不幸的是,这还没有解决.谢谢"

好的,请向我们显示您的编译预处理器值,无法根据提供的信息进行任何猜测.建立>配置管理器... ,然后在活动解决方案配置中选择调试:下拉菜单,您应该能够查看是否有任何项目(在下面列出) )设置为在 Debug 配置中以 Release 构建.


报价:确定,现在我感觉像对了,菜鸟!抱歉,反应不佳.我在哪里可以找到这些值.

右键单击您的项目,然后选择:

Properties -> C/C++ -> Preprocessor



Properties -> C/C++ -> Command Line



查看一下并检查您的设置是否与您在源代码中使用的值一致.是时候花点时间浏览属性"对话框的所有部分以及可用的各种选项.


Hi,

I''ve just started doing some dev work on a WPF/Prism project under VS2008 on 64 bit Windows 7.

I''ve got these lines in my App.xaml file:

#if (DEBUG)
  RunInDebugMode();
#else
  RunInReleaseMode();
#endif



For some reason its started to always run in release mode despite building in debug mode when hitting F5 in VS2008. How can this be fixed?

Cheers,

解决方案

Quote: "That hasn''t fixed it unfortunately. Thanks"

OK, Please show us your compilation preprocessor values, it''s impossible to make any guesses based on the information provided.


Another thing to check: if you go to menu item Build > Configuration Manager... and select Debug in the Active solution configuration: drop down, you should be able to see whether any of your projects (listed below it) are set to build as Release while in the Debug configuration.


Quote: OK, now I feel like a right noob! Sorry, about the shoddy response. Where would I find these values.

Right click on your project then select:

Properties -> C/C++ -> Preprocessor


or

Properties -> C/C++ -> Command Line



Take a look and check that your settings are all consistent with the values you are using in your source code. It is time well spent to explore all the sections of the Properties dialog and the various options that are available.


这篇关于VS2008 Win7 64调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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