Add debug message support for proxy.js