2012年7月13日

如何把 Visutal studio中的“print-on-breakpoint”消息打印在程序的任何地方

摘要: 这个问题visual studio - In VS, make print-on-breakpoint use the console - Stack Overflow说明了怎么做。我结合之前这篇文章做了个小例子,放在github上。几个截图:1. 定制debug显示信息。2. 隐藏函数调用。3. 输出 “print-on-breakpoint”消息在output上。 阅读全文

posted @ 2012-07-13 17:24 fresky 阅读(181) 评论(0) 推荐(0)

C#中 #if DEBUG 和 Conditional("DEBUG")的区别

摘要: 这里c# - #if DEBUG vs. Conditional("DEBUG") - Stack Overflow解释了两者的区别。摘要如下:#if DEBUG: 发生在编译时,release编译出的IL不包含if中的代码[Conditional("DEBUG")]: 发生在运行时,releae编译出的IL包含代码,但是不会被执行。 阅读全文

posted @ 2012-07-13 15:41 fresky 阅读(455) 评论(0) 推荐(0)

导航