android debug速度特别慢有时候卡住

2021-04-25 09:53:18

android studio进行debug测试的时候,速度又时候特别慢,最常见的原因是因为我们打了太多的断点,导致debug启动慢,我们只要把断点去掉,留下必要的断点,速度就会上来。


下面我们要讲的是另一个问题,我遇到的。

因为我的工程包含了c++程序,所以是这个问题影响了我的debug,导致特别慢。其实我们可以设置

只调试java代码或者c代码,或者两者都调试。


我尝试了,因为我目前只需要调试java代码,我就只选择了java调试,速度杠杠的。


参考地址 Android Studio 跳过 C/C++ 程序 调试 java 方法


需要调试 C/C++ 程序首先需要在 SDK Manager 安装 CMake、LLDB 和 NDK。




 但是在具体调试时,一直提示定在 Starting LLDB server。可能的原因是 Android Studio编译速度太慢了,就会一直卡在Starting LLDB server。可以通过设置 Run/Debug Configurations ——> Debugger ——> Debug type 为 Java 跳过 C/C++的调试,起码实现对 Java 程序的调试。







  • 2017-11-10 00:06:15

    CORS: credentials mode is 'include'

    XMLHttpRequest cannot load http://localhost/Foo.API/token. The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. Origin 'http://localhost:5000' is therefore not allowed access. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.

  • 2017-11-19 00:17:51

    Java如何获取Date的“昨天”与“明天”示例代码

    最近在做项目的时候用到Date和Calendar比较多,而且用到的方式也比较全,突然想到一个问题,Java如何获取Date的"昨天"与"明天",也就是前一天和后一天呢?思考后写出了方法,想着万一以后用到,就总结出来,也方便有需要的朋友们参考借鉴,下面来一起看看吧。

  • 2017-11-23 02:00:51

    js 分页插件twbs-pagination

    ​cdn地址 http://www.bootcdn.cn/twbs-pagination/ 官网地址 可以在cdn地址上面查看到