NDK debugging across Android Studio & Visual Studio

222 views
Skip to first unread message

Daniel Wright

unread,
Nov 13, 2015, 8:21:42 AM11/13/15
to android-ndk
Hello,

I'm currently looking for a way to debug native C++ code that I have in a large project of mine, using GDB or some other debugger. The layout of my project is as such:

Java front end is developed in Android Studio with classes that have native methods
C++ back end is developed in Visual Studio 2015 and compiled into a collection of libraries

Because I do not have the project encompassed under one IDE, it has proven somewhat difficult to find an easy way to debug my code; I have tried using GDB on the command line (NDK python GDB wrapper), but could not get it to work. 

Currently I am only using logcat plus __android_log_print(...), but this is becoming very tedious and inconvenient.

I know this is very vague, but perhaps you guys can point me in the right direction? Thanks for any responses. 

Johan Euphrosine

unread,
Nov 14, 2015, 1:46:35 AM11/14/15
to android-ndk
Hi Daniel,

You could try to build and debug your libraries using the new experimental C++ support for Android Studio:

Hope that helps.

--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk...@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
Visit this group at http://groups.google.com/group/android-ndk.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages