Pages

Debug Android NDK Project in Eclipse

Wednesday, March 27, 2013

Debugging Android NDK Application in Eclipse is cumbersome. There are some GDB agent to debug Android application there but the best GDB agent is NVidia Debug Manager Plugin from NVidia. To install the NVidia Debug Manager Plugin, at first you need to join in the Tegra Registered Developers Program. To do this go to this page and create an account. Next, a verification and approval process will be gone through. After NVidia approves your account you can download the Tegra Developers Pack.When you install the Tegra Developer pack, it gives you the option to select what you want to install and at this point, you can opt to install just the plugin.


To start a debug session select your project, right click and select Debug As Android NDK application, as you can see below:


You will see an option "Android NDK Application" if NVidia Debug Manager plugin is correctly installed. Now set a break point in the C++ code and select the "Android NDK Application" option to debug the application. Eclipse will automatically switch the Perspective window to "Debug" perspective window and start to debug the application. When the break point hits, application execution will be halt and you can now debug the application.


3 comments

  1. We at Webnet, comprehend why picking the best android application development organization is so critical to pick up piece of the overall industry and achievement. It is subsequently, that we ensure that we add to your versatile application keeping in perspective the most astounding quality benchmarks and client inclinations.

    ReplyDelete
  2. Custom Android App Development is said to have a commanding position in the Smartphone market as Android is an incredible stage to create Smartphone applications.

    ReplyDelete