How to debug a Wallpaper service?

view story

http://stackoverflow.com – I'm code up a simple wallpaper service, similar to this one(Android app to change wallpaper at regular intervals using Timer). Upon starting it crashed. The IDE doesn't allow to Run/Debug directly because there's no intent.action.MAIN in the manifest (since it's a service anyway). I'm using IntelliJ but I guess Eclipse is the same. So I got to make the apk then install it via adb. So how do I debug it? Tks. My manifest file: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.TestWallpape (HowTos)