Painless Debug.explain is NOT a println because interrupts the flow. Is there any way I can print a variable without interrupting the scoring for the document? Thanks.
No, doing disk writes per document within a scoring script would be very expensive. Debug.explain is a compromise that helps with debugging, but without affecting performance of a real script (eg you cannot accidentally leave it in and have performance issues because the script doesn't actually score when Debug.explain is present).