Debug background service in android using intelliJ

I recently switched from eclipse to IntelliJ for Android development (due to better support for the w / projects / modules command). However, when I try to debug the background service, it seems like this is impossible to do. Has anyone successfully got intelliJ to debug a bg service?

thank you so much Ben

+3
source share
1 answer

There are two ways to do this:

  • In the Android Run / Debug configuration, disable the Deploy application and enable the Do not launch Activity .

  • On the toolbar, use the Attach debugger to Android process button: attach debugger

+7
source

All Articles