I have a Mac and am running Visual Studio 2022 for Mac Arm.
I cannot debug on my Android 12 Samsung A135U. I can debug on my Pixel 3 with Android 11. I also have another Android 12 Samsung A535G and it works fine, so it seems to be this one phone.
Forwarding debugger port 8814
Detecting existing process
> am start -a "android.intent.action.MAIN" -n
"com.holley.msd.msd6al/crc6440ee73e2d8c95812.SplashActivity"
> Starting: Intent { act=android.intent.action.MAIN
cmp=com.holley.msd.msd6al/crc6440ee73e2d8c95812.SplashActivity }
On the phone I am seeing this message:
E/adbd: failed to connect to socket 'tcp:8814': Connection refused
I found this post which looked really similar.
When debugging with an Android device I get a 'Failed to connect to socket' error
The MS person who replied suggested this other post:
adb cannot connect to daemon at tcp:5037
I tried all of those things and none of them worked for me.
The thing that I think may help you figure this out in my case is that my other 2 phones works fine.
I can debug and step through code and hit breakpoints all just fine.
It is just the Android 12 Samsung A135U that doesn't work.
I set it up the same with all the same settings.
I tried using Wireless debugging just to see if that would make a difference, but get the same results.
I have followed all steps I can find to enable debugging and did it exactly the same on the phone that works and the one that doesn't.
Please advise....