[Android Q&A, Help & Troubleshooting] GalaxyA325G:
How do I debug a debuggable app on a physical phone over USB to Windows?

1. The app is Muntashirakon App Manager but this question is generic to any app

2. I've told people it's a great app but it's hanging on them

3. On my phone, some versions hang; others do not hang

I don't have a link to the debuggable version on a web page, but I created a telegram account to download the debuggable app from the author's telegram channel.

App Manager | CHANNEL: https://t.me/AppManagerChannel

Although the author seems to have multiple channels on Telegram.

But I don't have any posting access (nor do I know even how to link to them).

DEBUG channel: @AppManagerDebug

Community channel: @AppManagerCommunity

A. So I downloaded a debuggable version off of the author's Telegram channel

Name: AppManager_v4.0.0-beta01-DEBUG#2706.apk​

Size: 27884019 bytes (26 MiB)​

SHA256: AEFAC82A44F2F7865FD3D9DD0E1ADF968F43920604C92C8D2E0897541B0B1ED3​

B. The debuggable version installs next to the last-known-good-version

C. The last-known-good-version works; the debuggable version hangs

This version works:

App Manager io.github.muntashirakon.AppManager Version 4.0.0-beta01 (436)

This version hangs:

AM Debug io.github.muntashirakon.AppManager.debug Version 4.0.0-beta01-DEBUG (436)

OK. Now how do I create debug logs to send to the developer?

a. The developer doesn't enable posting in Telegram

b. The developer wants debug logs sent to his email

c. But how do I generate those debug logs?

Being a noob, I run a basic search first.

<https://www.google.com/search?q=how+to+use+Android+logcat+debugger>

That search comes up with this - but it's for developers, not users.

*View logs with Logcat*

<https://developer.android.com/studio/debug/logcat>

"When an app throws an exception, Logcat shows a message followed by

the associated stack trace containing links to the line of code."

Looking for something for users, I see this next.

*Debugging*

<https://developer.android.com/studio/debug>

"Before you can begin debugging, do the following:

1. Enable debugging on your device.

If you're using the emulator, debugging is enabled by default.

But for a connected device, you need to enable debugging in the

device developer options.

2. Run a debuggable build variant.

Use a build variant that includes debuggable true

(isDebuggable = true in Kotlin scripts) in the build configuration."

3. If your app is already running on your device, you can start

debugging without restarting your app as follows:

Click Attach debugger to Android process .

In the Choose Process dialog, select the process you want to attach

the debugger to.

That should fit what I'm doing, right?

Here is where I'm stuck, but it doesn't use "logcat" yet.

1. Install a debuggable version of an app.

2. Set the Developer Options debugger to that app.

3. ??? Turn on Developer Options Wait for Debugger ???

4. Start the debuggable app.

Now what?

If I can figure out how to get the debug log to work, I can help those people.

But how do I get a debuggable app debugged so that I can send that debug log to the developer (who, in this case, is am4android [at] riseup [dot] net)?

What's the next step to get the debug log?