Apparently the usual Python print()
command is prohibited in a Server Script.
As a work around I am using …
msg = []
msg.append(f"some{thing}, ")
msg.append("something {else}, ")
frappe.msgprint( msg = ''.join(msg), title = 'Debug Log' )
… so as to build up usefully large snapshots of what’s going on in my code.
It’s pretty horrible.
Is there a better alternative?
Alternatively, how can I call into my whitelisted functionality?