Error messages, including standard Python tracebacks, appear in this IDE window:

and in your App system logs (accessible via this button):
![]()
Anything your code print()s also appears in these places.
See The Anvil Editor.
I have no experience with the open-source server. Perhaps someone else can answer that part.