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 程序的调试。







  • 2018-02-23 14:22:50

    mysql的yearweek 和 weekofyear函数

    例如 2010-3-14 ,礼拜天 SELECT YEARWEEK('2010-3-14') 返回 11 SELECT YEARWEEK('2010-3-14',1) 返回 10 其中第二个参数是 mode ,具体指的意思如下: Mode First day of week Range Week 1 is the first week … 0 Sunday 0-53 with a Sunday in this year 1 Monday 0-53 with more than 3 days this year 2 Sunday 1-53 with a Sunday in this year 3 Monday 1-53 with more than 3 days this year 4 Sunday 0-53 with more than 3 days this year 5 Monday 0-53 with a Monday in this year 6 Sunday 1-53 with more than 3 days this year 7 Monday 1-53 with a Monday in this year 2.

  • 2018-02-23 17:20:44

    Mysql数据库If语句的使用

    MySQL的if既可以作为表达式用,也可在存储过程中作为流程控制语句使用,如下是做为表达式使用:

  • 2018-02-24 10:16:36

    Java工具类之Apache的Commons Lang和BeanUtils

    Apache Commons包估计是Java中使用最广发的工具包了,很多框架都依赖于这组工具包中的一部分,它提供了我们常用的一些编程需要,但是JDK没能提供的机能,最大化的减少重复代码的编写。