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
There are two ways to do this:
In the Android Run / Debug configuration, disable the Deploy application and enable the Do not launch Activity .
Deploy application
Do not launch Activity
On the toolbar, use the Attach debugger to Android process button:
Attach debugger to Android process