I’m having a hard time getting breakpoint debugging working for unity with and android device. I’ve tried with both visual studio code and monodevelop.
I have successfully done all the steps outlined here for getting android connected over wifi in tcpip mode: https://docs.unity3d.com/Manual/AttachingMonoDevelopDebuggerToAnAndroidDevice.html
I try debugging with “attach to process” but it only finds the Unity Editor.
Lots of people have the same problem:https://forum.unity3d.com/threads/attaching-monodevelop-debugger-to-an-android-device.245814/
Down at the bottom, people are figuring out that multicast settings were the issue. I have a linksys router, and I’ve ensured that security->filter multicast is unchecked. Is there anything else I have to do here to get multicast to work?
Since monodevelop wasn’t working, I tried with vscode
For VS code
I added the plugin to an empty project as described here:
Any help would be much appreciated!
For what it’s worth, I’ve encountered the
Could not find target name 'Android Player'. Is it running? message in Visual Studio Code when my laptop and the Android device I’m trying to debug were (accidentally) not connected to the same wifi network.
Connecting them to the same network got things working again. So that’s an easy thing to check. 🙂
I also got the problem today.
Your front steps are correct. Problem is “Attach to Process”.
After app run on android device, close unity but keep monodevelop, then click the run button(or menu Run | Attach to Process) of monodevelop. Now u can see device list in the dialog.
It works for me. I found the solution from the thread u mentioned