Hi everyone, I followed the “Set up Android” steps from the documentation, using the version of AndroidWorks that ships with the engine but I can´t seem to be able to debug the application once it´s launched on my Android phone . Here are the steps I take to deploy my C+±based game to the device:
Visual Studio 2015 does not currently have the capability to debug for Android at this time. If you wish to debug Android projects, you’ll need to use Visual Studio 2013. We do currently have plans to add 2015 support for this which is in our system under the number UEPLAT-266.
I haven’t been able to get it to work myself, but I am told that VS2017’s Microsoft Debugger can be used if you include the -vsdebugandroid command in your GenerateProjectFiles.bat. What device are you trying to debug, and are you trying to debug CPU or GPU?
I’m trying to debug the CPU on a Pixel XL. Looks like 99% or my code is behaving as expected on Android but getting the last 1% working using logging only will be painful. Guess I’ll try VS 2017.
That was just a matter of setting permissions on the folder, followed by another one (Program Files (x86)\Microsoft Visual Studio\2017\Community\Apps\apache-ant-1.9.3\bin).
Still missing something though - I can build the android debug build but don’t have any device options. Perhaps need to reinstall tegra or something to get working in VS2017?
A reinstall of tegra nsight didn’t help - looking at their documentation I don’t see VS2017 on the supported version list. Also - looking at the VS2017 Android overview they talk about debugging the ARM platform which is not present in UE4 (Android). I guess the ARM settings would need to be transposed to Android.
I apologize for the delay but are you still experiencing this issue? If so, please let me know and I’ll attempt to continue investigating this issue. In the meantime, I’ll be marking this issue as resolved for tracking purposes.
Debugging Android devices worked well some days ago. After a couple opterations (Updating vs2022, installing xamarin, modifying debug configuration etc,), Debug button shows Start on my project not the specific device names, and I don’t know how to get it fixed. Please help!