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-06 01:00:17

    撤销git add

    如何撤销git add,不小心执行了git add . 操作,但是又不能提交所有的文件,因为对应不同的分支,现在怎么样可以将git add 撤销回来

  • 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.