I've been trying pretty much all day to get the Android Debugger working with my nVidia Shield Device, but it absolutely refuses to work. What's annoying is that I'm now so close to getting there but it just doesn't seem to connect to the device. I'll start at the beginning:
Package Game for Windows, works and runs as expected on Desktop.
Package game for Android DXT - Attempt to run it on the nVidia shield tablet and get a crash instantly. The Android log in Visual Studio gives me no useful information. The problem is almost certainly caused by my code since that's the last log message that appears, but after that it's gone.
Originally had a newer version of the TDP installed, 4.0 or something, since I thought I had to have that to debug Shield devices.
Visual Studio had NO options for debugging on Android. See thread here: https://forums.unrealengine.com/showthread.php?81239-Seriously-HOW-do-you-attach-the-Debugger-to-an-Android-Device-!
Spent ages trying to fix that, had numerous issues as per the thread above. Decided to re-install the TADP but this time STRAIGHT from the engine folder (4.8), which I think is TADP version 2.0r or something.
I now have an 'Android Debugger' option in Visual Studio (Finally!) When I hit that, it deploys to & launches the game on the Shield device.
Now the problem is, my breakpoints in my code go white as if the symbols aren't being loaded or aren't available. Additionally, it looks as though the debugger never actually manages to connect to the device, since these are the entire contents of the output window:
I can cause the crash by opening a specific level, as soon as I open the level the debugger calls a breakpoint but NOT in my code, instead I get something called 'Segmentation Error'. The callstack gives me absolutely nothing, only vague memory addresses, but no functions or breakpoints that I can follow:
So that's where I'm stuck. Honestly it's kind of depressing that there is literally, NO documentation on how to debug Android devices. Both myself an a chap with years of experience at EA have struggled to work through this, so I have no idea how the general population are meant to work through it...
So I figure that the Segmentation Error is down to the Game crashing and the debugger hasn't successfully attached, but I could be way off.
I really need to get this problem sorted fast, so if needs be I can send somebody a copy of the game providing it remains private?
Aug 21 '15 at 03:46 PM
in Using UE4