It has been a while since I last attempted to use the Tegra Debugger in Visual Studio. However, I’m re-evaluating its usefulness so I’m once again attempting to “Debug an Existing APK” as specified here: Debugging an App.
I have replaced my device drivers with the one provided in the TDK, and also bundled the included gdbserver in my application. However, when attempting to debug the app on my Nexus 7, I get the error, “Failed to attach: Failed to start debug server on device: run-as: Package ‘com.ea.samplegame’ is unknown.”
Interestingly, using the same project on my Samsung Galaxy S3 I9300 yields much better results (everything succeeds), but I’m greeted with a License Error, “NVIDIA Nsight Tegra, Visual Studio Edition is not inteded to run on a non-NVIDIA hardware. Please visit Mentor Embedded … to request support for you hardware.” For the sake of completeness, I have already submitted a request.
Open exsist progect “native_basic” or … (NVPACK\TDK_Samples\tegra_android_native_samples_v10p14)
When run or attempting to debug the app, I get the error, “Failed to attach: Failed to start debug server on device: run-as: Package ‘com.nvidia.devtech.NativeBasic’ is unknown.”
Device API level: 17
Android: Setting ports…
Android: Starting GDB server on device…
The error message suggests that your device has the same issues as the official Android 4.3. Have you tried debugging via ndk-gdb or manually or running anything via run-as command - did that work for you? Vendors often apply various patches to the Android branch and that might have broken the debugging (or run-as, more specifically) for you.