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
定义 TRACE
并使用 Trace.WriteLine。
看看这里:
No, but you can use the Trace
in release by defining TRACE
and using Trace.WriteLine.
Have a look here:
这篇关于Debug.WriteLine在发布版本中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文