How to attach debugger to Wear OS emulator (or watch) and debug a complication provider?

196 views Asked by At

I am trying to debug a Wear OS complication provider, and I cannot find any instructions on how to do so.

I didn't write it, and I'm new to Android development - I'm trying to diagnose a bug in an Open Source project.

I have the phone and watch emulators working (both are Android 11, x86) and paired. The app deploys and runs on both. When I try to debug the Wear OS side, however, a vast majority of the breakpoints aren't being hit (and don't have the little checkbox in Android Studio).

The code for the actual app will debug fine - it hits breakpoints. But the code that provides data for the face and the complication provider won't attach - breakpoints are inactive.

I tried attaching to ALL the processes on the watch at once. I went through them one-by-one. Nothing - none of the processes seem to have the complication provider code in them - or if they do, the debugger can't find it.

I've been banging my head on this for a couple days. According to Google "complication provider" and "attach debugger" do not exist on the same page anywhere on the internet.

Is it simply not possible? It looks like faces can be debugged but it doesn't seem to be working either.

Thanks in advance!

0

There are 0 answers