Index: /trunk/ppStack/src/ppStack.h
===================================================================
--- /trunk/ppStack/src/ppStack.h	(revision 19213)
+++ /trunk/ppStack/src/ppStack.h	(revision 19214)
@@ -87,4 +87,7 @@
     );
 
+/// Print sources into a ds9 regions file
+void ppStackSourcesPrint(const psArray *sources ///< Sources to print
+    );
 
 #endif
Index: /trunk/ppStack/src/ppStackLoop.c
===================================================================
--- /trunk/ppStack/src/ppStackLoop.c	(revision 19213)
+++ /trunk/ppStack/src/ppStackLoop.c	(revision 19214)
@@ -324,4 +324,7 @@
                 }
                 indSources->data[index] = psMemIncrRefCounter(sources);
+#ifdef TESTING
+                ppStackSourcesPrint(sources);
+#endif
                 sourceLists = ppStackSourceListAdd(sourceLists, sources, config);
                 if (!sourceLists) {
@@ -374,4 +377,7 @@
                 return false;
             }
+#ifdef TESTING
+            ppStackSourcesPrint(globalSources);
+#endif
         }
 
