I am new in Android and I faced to a problem. I use android studio 2.3, and everything was fine. But after some time, i spotted that an app hangs while i debug. It freeze and works pretty slow. If i turn off debug the app works fine. I tried to clean cach on device and studio but it did not help. I set the my laptop aside and continued work on other pc. In the beginning everything was good but problem returns. I cant figure out the reason and fix it. Has anybody face same problem?
Проблема приложение тормозит во время отладки. Без оной работает нормально. Продолжил работать за другим pc и все было хорошо сперва, но проблема вернулась. Пробовал чистить кешь, удалять но не помогает. Как с этим бороться?
As WieFel wrote, debugger will obviously stop at any breakpoints you created. Make sure that you are not setting your breakpoints on whole methods, as it can cause your debugger to be incredibly slow. Breakpoints should be ideally targeted at single lines of code. You can see all of the breakpoints you've set by Run... -> View Breakpoints or Cmd/Ctrl + Shift + F8.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With