我如何在发布模式下调试 [英] How do i debug in Release mode

查看:60
本文介绍了我如何在发布模式下调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


对不起,这对每个人来说听起来都很简单,但如果有人知道,请告诉我/ b $ b我如何在发布模式下调试我的MFC应用程序。


谢谢

解决方案

" Bhavna Rohra" < BH ********* @ hotmail.com>在消息中写道

news:25 ************************** @ posting.google.c om ...

大家好,

很抱歉,这对每个人来说听起来都很容易,但如果有人
colud告诉我如何在发布模式下调试我的MFC应用程序。


按下带有三角形的小按钮。然后咨询:

http:// www。 parashift.com/c++-faq-lite/

Jonathan




Bhavna Rohra < BH ********* @ hotmail.com>在消息中写道

news:25 ************************** @ posting.google.c om ...

大家好,

很抱歉,对于每个人来说这听起来都很容易,但如果有人知道如何在发布模式下调试我的MFC应用程序,请取悦我。




这个新闻组肯定是偏离主题的。

< OT>

发布版本身意味着编译器在可执行文件中没有创建调试

信息。它也不会在调试版本中为你做任何初始化。

查看调试和发布版本中exe大小的差异。

理想情况下,工作方式是在调试模式下逐步开发和

同时继续检查程序在发布中运行

build。所以注释掉你的程序的一部分并运行直到你可以跟踪

问题。这只是通过打印语句/日志记录机制,你可以知道
可以知道在哪里问题是。

< / OT>


-Sharad


" Bhavna Rohra" ; < BH ********* @ hotmail.com>在消息中写道

news:25 ************************** @ posting.google.c om ...

大家好,

很抱歉,这对每个人来说听起来都很容易,但如果有人知道如何在发布模式下调试我的MFC应用程序,请取悦我。 />
谢谢




< OT>

返回并阅读有关含义的帮助文件

的调试模式和释放模式。

< / OT>


然后读这个:
http://www.slack.net/~shiva/welcome.txt

-Mike


Hello everyone,

Sorry, it might sound easy for everyone but please if someone colud tell
me how to debug my MFC application in Release mode.

Thanks

解决方案

"Bhavna Rohra" <bh*********@hotmail.com> wrote in message
news:25**************************@posting.google.c om...

Hello everyone,

Sorry, it might sound easy for everyone but please if someone colud tell me how to debug my MFC application in Release mode.



Press that little button with a triangle on it. Then consult:

http://www.parashift.com/c++-faq-lite/

Jonathan



"Bhavna Rohra" <bh*********@hotmail.com> wrote in message
news:25**************************@posting.google.c om...

Hello everyone,

Sorry, it might sound easy for everyone but please if someone colud tell
me how to debug my MFC application in Release mode.



This is certainly off-topic on this newsgroup.
<OT>
Release build itself means that the compiler has created no debugging
information in the executable. It also
does no kind of initializations for you unlike in debug build.
Check out the difference in the exe size in debug and release builds.
So ideally the way to work is that develop incrementally in debug mode and
simultaneously keep checking the program runs in release
build too. So comment out parts of your program and run till you can track the
problem.Else it''s only left through print statements/logging mechanisms that you
can know where the problem is.
</OT>

-Sharad


"Bhavna Rohra" <bh*********@hotmail.com> wrote in message
news:25**************************@posting.google.c om...

Hello everyone,

Sorry, it might sound easy for everyone but please if someone colud tell
me how to debug my MFC application in Release mode.

Thanks



<OT>
Go back and read your help file about what are the meanings
of "Debug mode" and "Release mode".
</OT>

Then read this:
http://www.slack.net/~shiva/welcome.txt

-Mike


这篇关于我如何在发布模式下调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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