Set the debug hook in tibiaproxy_main.