Shams
Shams

Reputation: 398

The app freezes while debugging but if I just run the app everything works fine

Can't debug an Android app. When I click on the Debug button, the app starts but it freezes at the first screen. This happens only when I debug the app, if I just run the app everything works fine. I tried to run the app first and then attach debugger to Android process but it did not help.

I can't figure out what the problem is. What can slow down debugging? Tried all these solutions stackoverflow1, stackoverflow2, intellij-support

The app has pretty big codebase. I can provide any additional info if needed. Thank you for your help!

Upvotes: 1

Views: 998

Answers (1)

DDeveloper
DDeveloper

Reputation: 11

In any terminal such as Termux,etc run this command after 5-6 minutes of every reboot/power on: su -c "/system/bin/device_config put activity_manager max_phantom_processes 2147483647"

You shouldn't face this freezing issue then.

You can read more about this here: https://gist.github.com/agnostic-apollo/dc7e47991c512755ff26bd2d31e72ca8

Upvotes: 1

Related Questions