Bug? In release mode if the device is connected through USB we can still see the log messages

LucianDesign

Member
Licensed User
Longtime User
Hello,

I've tested this with my published app from Google Play (signed with my own key).
I don't know if this is a bug, but in in release mode if the device is connected through USB we can still see the log messages in the Log panel in B4A.
Is this ok? So the app fires these events on the debug port even if is in release mode?

Steps to reproduce:
1. Install the released app on device
2. Connect your device through USB on PC
3. Launch the mobile app
4. Hit "Connect" from B4A Logs panel
5. You will now see all log messages
 

Cableguy

Expert
Licensed User
Longtime User
of course you will, you have the debugging active in the device side! (factory setting is disabled, its part of the "developer option")
do not mistake logs with debugger info! the logs are your own messages sent to the debugger queue!
 

Cableguy

Expert
Licensed User
Longtime User
Yes and no...
The everyday user phones will most likely not have the Developer Option active....
What I mean is, before release, its a good practice to do a cleanup of the Log statements, that we all use to keep track of things...
Still, if a few log statements pass by us, its not a critical thing, the app wont suffer, and the user will not be aware of the logs!
 

Pendrush

Well-Known Member
Licensed User
Longtime User
You can use #IF statement for logs. For example:
B4X:
#If DEBUG
    Log("a")
#End If
 
Top