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

Didier9

Well-Known Member
Licensed User
Longtime 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
Longtime 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
Longtime User
Upvote 0
Top