Added explicit debug messages

Also added Windows command-line workaround debug file.