Android Question {SOLVED} -USB Debugger -Logging is not working

kps

Member
Hello everyone,

I switched over to USB debugging from B4A Bridge for taking screenshots.
I find it better than B4A bridge.
With B4A Bridge, I had to keep hitting F2 every now and then.
With USB debugging, no such issue.
Added bonus is, phone is always charged.

But there is one thing that bugs me.
Logging doesn't work; Log window is completely blank.
No difference whether in Debug mode or Release mode.
(Logging works ok with B4A Bridge)

I found this thread
https://www.b4x.com/android/forum/threads/debug-mode-log-doesnt-work.113361/#post-707243
I tried whatever was suggested there. It didn't help.

I have put the #BridgeLogger:True directive
I tried restart ADB Server.
B4A Bridge disconnected and app is closed.

Nothing helped.
Can someone throw some light on this ?

Regards,
KPS
 

kps

Member
Are you able to see the logs with <sdk>\platform-tools\adb logcat
?

@Erel
I suppose you meant I have to go the c:\android\platform-tools directory and execute adb logcat.
I went to command prompt and did that.
The screen kept spewing out information without stopping.
The information appeared to be repetitive.
I had to do a CTRL + C to get out.

I then redirected the output. adb logcat > adblogcat.txt
Again, I had to do a CTRL +C to abort it.
In a couple of seconds it was a 8MB file.
I have left the beginning and ending portion and deleted the whole middle portion, to keep the file size small.
The file is attached. I can't make head or tail out of that.


But, the good news is that Logging is working now.
I discovered I had to click the "CONNECT" button in the Log window.
I have never done that so far while working with B4A Bridge.

The problem is solved but I am concerned about that repetetive output in logcat output.
Is everything ok ?

I further discovered the same continuous spewing out happens in my B4A log window also, if I "uncheck" Filter.
It stops only when I pull out the USB cable from the Phone. Does not resume automatically, when I connect again.
I have to click the CONNECT button.

Is this all normal ?

Regards,
KPS
 

Attachments

  • adblogcat.txt
    42.8 KB · Views: 191
Upvote 0
Top