Trac is being migrated to new services! Issues can be found in our new YouTrack instance and WIKI pages can be found on our website.

Version 1 (modified by michaelz, 12 years ago) (diff)

--

debugging native code in Android.

  • (skip for Testclient) Set android:debuggable="true" in your application definition in the AndroidManifest?.xml.
  • Open the debug configuration dialog.
  • Create a new Debug configuration by double-clicking on C/C++ Attach to Application
  • This needs to be done in the main tab:
    • Enter im.pidgin.libpurple as Project name
    • Enter Android/libim.pidgin.libpurple.so as C/C++ Application name (or just click on Search project... to find it)
  • Go to the debugger tab.
    • Select gdbserver as Debugger.
    • Enter ${ndk.root}/bin/arm-linux-androideabi-gdb in the GDB debugger filed.
    • As command file, select the gdb.setup file in the native directory.
    • In the connection tab, enter TCP as connection type, localhost as target and 5039 as port.
  • Close the dialog by hitting Apply and Close.
All information, including names and email addresses, entered onto this website or sent to mailing lists affiliated with this website will be public. Do not post confidential information, especially passwords!