Android Question How to detect when an app is running in Debug mode [solved]

Didier9

Well-Known Member
Licensed User
I am sure I saw that before but at the moment I can't find it.
I want to be able to turn off logging when not running in debug.

Thanks in advance
 

DonManfred

Expert
Licensed User
You can put your logs into a conditional compiling.

Use Mylog(...) instead of LOG

B4X:
Sub Mylog(msg as string)
#if debug
Log(msg)
#end if
End sub
 
Upvote 0

jimmyF

Active Member
Licensed User
Upvote 0
Top