Android NDK Development, with Cygwin debug local code times wrong "another debug session Running,use--force to kill it" causes and solutions

Source: Internet
Author: User

When debugging with Ndk-gdb, execute $ndk/ndk-gdb--verbose Error "Another debug session Running,use--force to kill it".

I checked the NDK official documentation, saying this:

--force:by Default, Ndk-gdb aborts if it finds that another native debugging session was running on the same device. U Sing--force would kill the session, and replace it with a new one. Note that the debugged program is *not* killed and would be stopped again.

--start:by default, Ndk-gdb would try to attach to a existing running instance of your application on the target device. You can use--start to explicitly launch your application before the debugging session.

By default, NDK debugging opens the session for Ant Debug, but Ndk-gdb also initiates a session, so there is a conflict. Use force to close the Ant debug session.

I did not report the error $NDK/ndk-gdb--verbose--force command.

Android NDK Development, with Cygwin debug local code times wrong "another debug session Running,use--force to kill it" causes and solutions

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.