Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

debug background service in android using intelliJ

I recently switched from eclipse to IntelliJ for android development (due to the better team support w/ projects/modules). However, when I try to debug the a background service, it appears this is not possible to do. Has anyone successfully gotten intelliJ to debug a bg service?

many thanks Ben

like image 581
Ben Avatar asked Sep 15 '25 11:09

Ben


1 Answers

There are 2 ways to do it:

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

  2. In the toolbar use the Attach debugger to Android process button: attach debugger

like image 124
CrazyCoder Avatar answered Sep 17 '25 02:09

CrazyCoder