Search code examples
androiddebuggingoperating-systemgdbserver

gdbserver - command not found


I would like to perform debug operations on the Android open source platform.

I am trying to run "gdbserver :5039 --attach" in my terminal but I keep receiving "command not found".

I have built the Android OS using the "full_crespo-userdebug" configuration, which according to the android docs, should provide me with root access on my Nexus S phone?

How can I set things up so that I can debug?


Solution

  • To debug an android device you first need to run gdbserver on the device.

    gdbserver :5039 --attach pid
    

    then in your gingerbread source folder you need to run

    source build/envsetup.sh
    

    this will allow you to now run

    gdbclient
    

    which should connect to the gdbserver on device