在的Debug.WriteLine发布版本 [英] Debug.WriteLine in release build
本文介绍了在的Debug.WriteLine发布版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法使用的Debug.WriteLine
在一个发布版本没有定义 DEBUG
?
Is there a way to use Debug.WriteLine
in a release build without defining DEBUG
?
推荐答案
没有,但是你可以使用跟踪
的定义发布跟踪
和使用 Trace.WriteLine
看一看这里:
No, but you can use the Trace
in release by defining TRACE
and using Trace.WriteLine.
Have a look here:
http://support.microsoft.com/kb/815788
这篇关于在的Debug.WriteLine发布版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文