I am hacking a copy of the
AMC-mailing.pl script to return the annotated test papers via HTTP PUT. I am trying to take advantage of the
debug function provided by
As far as I can tell from reading the source,
set_debug("foo") should write debugging messages to the file
foo if it exists. But
--debug=foo on the command line doesn't write any lines to the file
foo. So I must be reading it wrong.
My first choice would be to write debugging messages to STDOUT, however. Is there a way do that?