Best Way to Include Debug Code?

后端 未结 7 1246
既然无缘
既然无缘 2020-12-24 01:43

I am programming Android applications, and the best way here may or may not be the same as Java in general.

I simply want to be able to set a debug flag that will on

7条回答
  •  渐次进展
    2020-12-24 01:59

    I think that writing tests is better alternative than adding DEBUG code.

    My point is that when you write test for some component/method/class you don't pollute your original source code with some redundant debug code.

提交回复
热议问题