add a debug printf-like function to the proxy_dll

FIXME: frames get out of sync (since frames have been introduced)