android NDK开发中,用Cygwin调试本地代码时报错“Another debug session running,Use --force to kill it”原因及解决办法
2014-10-23 22:36
148 查看
在使用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命令就没报这个错误了。
我查了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命令就没报这个错误了。
相关文章推荐
- flask开发遇到 Must provide secret_key to use csrf解决办法
- Re-installation failed due to different application signatures debug调试中的问题解决办法。
- Eclipse debug 断点不能调试 ,Eclipse Unable to install breakpoint in 解决办法
- Visual GDB进行Android NDK开发,报错:error : undefined reference to '__android_log_print' 解决办法
- iOS开发--"performSelector may cause a leak because its selector is unknown"警告原因及其解决办法
- Git 使用中显示“Another git process seems to be running in this repository...”的提示问题解决办法
- Android开发中java.lang.RuntimeException: Unable to start activity ComponentInfo{xxx}: java.lang.NullPointerException 错误的集中原因及解决办法
- iOS开发中Xcode编译错误 linker command failed with exit code 1 (use -v to see invocation) 的解决办法
- Debug:This kind of launch is configured to openthe debug perspective when it解决办法
- Debug:This kind of launch is configured to openthe debug perspective when it解决办法
- Flask开发遇到"Must provide secret_key to use csrf"解决办法
- iOS开发-"performSelector may cause a leak because its selector is unknown"警告原因及其解决办法
- 链接时报错:undefined reference to vtable 原因以及解决办法
- android ndk 开发流程以及“Method could not be resolved”的解决办法,代码提示
- Suggestion: use tools:overrideLibrary="xxx.xxx.xxx" to force usage的解决办法
- The TensorFlow library wasn't compiled to use SSE instructions, but these are avail、原因及解决办法
- flask开发遇到 Must provide secret_key to use csrf解决办法
- Android开发中java.lang.RuntimeException: Unable to start activity ComponentInfo{xxx}: java.lang.NullPointerException 错误的集中原因及解决办法
- Debug:This kind of launch is configured to openthe debug perspective when it解决办法
- android编程过程中遇到的关于Canvas: trying to use a recycled bitmap android.graphics.Bitmap问题的原因及解决办法