Not connecting to gdbserver

Sysprogs forums Forums VisualGDB Not connecting to gdbserver

This topic contains 1 reply, has 2 voices, and was last updated by  support 9 years, 8 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #572


    Hi all,

    I’m getting an error when I try to do Android–>Debug Android App:

    Visual GDB has failed to start your app due to the following error:

    Cannot connect to gdbserver. Please start debugging again. If the problem persists, increase additional gdbserver startup delay in VisualGDB project settings.

    It then displays the GDBserver log, which says:

    Attached; pid = 11740
    Listening on port 5039.

    No matter how big I make the delay, I get the same error. I adb shell into the tablet, and I can see the gdbserver running when I look at the processes using the “ps” command.

    The test application, just the default /usual “you have pressed this hug button X times”, is also started and running fine. Everything seems fine, except I can’t hit my breakpoint, and get that error.

    Any ideas?

    Thanks in advance! 🙂




    This can be caused by version incompatibility between gdbserver and your device.
    Does the problem also happen on the Emulator or other devices with more recent Android versions?
    If you are using an old phone version, please try using an older NDK version. If this helps, you can replace the prebuilt gdbserver in the new NDK with the one from the old NDK.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.