title: In Palantir Foundry, how do I debug pyspark (or pandas) UDFs since I can't use print statements?
body: <p>In Code Workbooks, I can use <code>print</code> statements, which appear in the Output section of the Code Workbook (where errors normally appear).  This does not work for UDFs, and it also doesn't work in Code Authoring/Repositories.</p>
  <p>What are ways I can debug my pyspark code, especially if I'm using UDFs?</p>