Index: apps/scrobbler.c
===================================================================
--- apps/scrobbler.c	(revision 12246)
+++ apps/scrobbler.c	(working copy)
@@ -186,8 +186,40 @@
         cache_pos++;
 }
 
+static void scrobbler_debug(struct mp3entry *debug_entry)
+{
+    int sd_fd;
+
+    sd_fd = open("/scrobbler-debug.log", O_RDONLY);
+    if(sd_fd < 0)
+    {
+        sd_fd = open("/scrobbler-debug.log", O_RDWR | O_CREAT);
+        if(sd_fd >= 0)
+        {
+            fdprintf(sd_fd, "#New file\n");
+            close(sd_fd);
+        }
+    }
+    close(sd_fd);
+
+    sd_fd = open("/scrobbler-debug.log", O_RDWR | O_APPEND);
+    if(sd_fd >= 0)
+    {
+        fdprintf(sd_fd, "%s\n", debug_entry->path);
+        fdprintf(sd_fd, "%s\t%s\t%s\t%d\t%d\n",
+                debug_entry->artist,
+                debug_entry->album,
+                debug_entry->title,
+                debug_entry->tracknum,
+                (int)debug_entry->length/1000);
+        close(sd_fd);
+    }
+}
+
 void scrobbler_change_event(struct mp3entry *id)
 {
+    scrobbler_debug(id);
+
     /* add entry using the previous scrobbler_entry and timestamp */
     if (pending)
         add_to_cache();
