resharper-unity icon indicating copy to clipboard operation
resharper-unity copied to clipboard

Add Debug Usb Android To Rider IDE

Open AlbertMontagutCasero opened this issue 4 years ago • 10 comments

Add to Attach to Run > Attach to unity Process... The game running process in android or ios device attached by USB, same as in Visual studio.

imagen

imagen

AlbertMontagutCasero avatar Aug 14 '19 18:08 AlbertMontagutCasero

its possible if enter 127.0.0.1: and copy port from visual studio

friuns2 avatar Nov 15 '19 10:11 friuns2

or you can get port number by typing in cmd adb forward --list

friuns2 avatar Nov 15 '19 11:11 friuns2

I need to debug Oculus Go app designed in Unity. I miss this feature in Rider.

literakl avatar Jan 08 '20 11:01 literakl

AIUI, Oculus Go is an Android app as far as Unity is concerned, right? So if Rider supports Android USB debugging, it should support Oculus Go. Is this correct?

citizenmatt avatar Jan 08 '20 15:01 citizenmatt

Yes, it is Android based and Unity generates APK

st 8. 1. 2020 v 16:30 odesílatel Matt Ellis [email protected] napsal:

AIUI, Oculus Go is an Android app as far as Unity is concerned, right? So if Rider supports Android USB debugging, it should support Oculus Go. Is this correct?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/JetBrains/resharper-unity/issues/1287?email_source=notifications&email_token=ABQWNN6GHOJZALXCNRQTJX3Q4XWQFA5CNFSM4ILX3PA2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIM6EYI#issuecomment-572121697, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABQWNNYXPKOKRD3VOUTLFJDQ4XWQFANCNFSM4ILX3PAQ .

literakl avatar Jan 08 '20 15:01 literakl

Rider supports android USB debugging? My android device is plugged on to my computer. I Just generated an APK using unity with the Development Build, Script Debugging and Wait For Managed Debugger checkbox enabled as you can see.

image

I am currently working with rider 2019 3.1

As you can see my device is plugged on. image

But when I go to the Run → Attach to Unity Process... only the editor is shown in the pop up.

image

My android device (Wi-Fi) is connected to the same network as it is the computer(wired)

What I am missing if Rider supports android USB debugging, same as Visual Studio?

AlbertMontagutCasero avatar Jan 08 '20 15:01 AlbertMontagutCasero

https://youtrack.jetbrains.com/issue/RIDER-35382

literakl avatar Jan 08 '20 16:01 literakl

Rider currently only supports wifi debugging. The target device must be visible on the same network as the machine running Rider. USB debugging is not yet supported.

citizenmatt avatar Jan 08 '20 16:01 citizenmatt

Ahhh, sorry I had misunderstood you! We will wait for the implementation! Really nice work!

AlbertMontagutCasero avatar Jan 08 '20 16:01 AlbertMontagutCasero

How's the feature coming along?

HnngKoos avatar Jan 31 '22 11:01 HnngKoos

Any news on that ? It's strange that such basic feature is not yet implemented :/ It's possible to workaround that by getting the USB port from Visual Studio, but it is not ideal ...

BSimonSweet avatar Feb 09 '23 10:02 BSimonSweet

It's in progress, and it should be part of Rider 2023.1. However, you should be able to debug via wifi using the Attach to Unity Process dialog in current versions.

citizenmatt avatar Feb 09 '23 14:02 citizenmatt

It's in progress, and it should be part of Rider 2023.1. However, you should be able to debug via wifi using the Attach to Unity Process dialog in current versions.

Great ! That's nice to hear ! Tried it over Wifi, but it's not working well for me, there is too much delay when the app hit a breakpoint, it get unusable :(

BSimonSweet avatar Feb 09 '23 17:02 BSimonSweet

@citizenmatt I'm using Rider 2023.3 (Build #RD-232.10203.29, built on November 1, 2023) and can't figure out how to debug Android via USB. Since this was marked completed back in February of this year for 2023.1, I should have access to this new capability, right? Is there documentation?

gerwalk avatar Dec 05 '23 15:12 gerwalk

@gerwalk Yes, you should have USB debugging support. There is some documentation in the web help, but essentially, you should just have to connect your Android device, and use the Attach to Unity Process action to show a dialog with all the different processes you can attach to. Rider will use the adb that you have configured in Unity to list running processes on connected devices, and it should list them in this dialog. You can select and double click, and it should attach and start debugging. If this isn't working, the best thing to do would be to use Help -> Submit a bug in Rider, which will create a bug report with attached logs, and I can take a look from that side of things.

citizenmatt avatar Dec 05 '23 15:12 citizenmatt

Hey, thanks for the fast response! The Attach to Unity Process window is still only showing me the editor process at 127.0.0.1 and I also notice that the little instruction text below reads as if WiFi is still the only way to connect (the wording only mentions being on the same network, no mention of a USB option).

FWIW my JetBrains Rider Editor package in my Unity project is version 3.0.25 from September 11, 2023 so I wouldn't expect any incompatibilities there. And of course my build settings have both Development Build and Script Debugging checked.

% adb devices
List of devices attached
G572XT10003V	device

Screen Shot 2023-12-05 at 10 53 06 AM

gerwalk avatar Dec 05 '23 16:12 gerwalk

The text probably should be updated to include something about Android USB. I think this one needs to look at logs, please, so submitting a bug report would be the best option. It's possible it's ARM related, as I personally haven't tested it on Apple Silicon. Also, I'm assuming you have the Android build support modules installed into your Unity installation.

citizenmatt avatar Dec 05 '23 16:12 citizenmatt