首页 > 移动平台 > 详细

android NDK开发中,用Cygwin调试本地代码时报错“Another debug session running,Use --force to kill it”原因及解决的方法

时间:2017-06-06 09:26:42      阅读:488      评论:0      收藏:0      [点我收藏+]

     在使用ndk-gdb调试的时候。运行$NDK/ndk-gdb --verbose报错“Another debug session running,Use --force to kill it”。

     我查了NDK官方文档,是这样说的:

       --force: By default, ndk-gdb aborts if it finds that another native debugging session is running on the same device. Using --force will kill the session, and replace it with a new one. Note that the debugged program is *not* killed and will be stopped again.

     --start: By default, ndk-gdb will try to attach to an existing running instance of your application on the target device. You can use --start to explicitly launch your application before the debugging session.

       在默认情况下,NDK调试会打开ant debug这个session,可是ndk-gdb也是启动一个session,所以会发生冲突。使用force将ant debug session关闭就能够了。

      我运行$NDK/ndk-gdb --verbose --force命令就没报这个错误了。

     

android NDK开发中,用Cygwin调试本地代码时报错“Another debug session running,Use --force to kill it”原因及解决的方法

原文:http://www.cnblogs.com/ljbguanli/p/6949781.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!