Then drop useless debug. And turn useful debug into appropriate dnet_log() on the client side.
It is basically impossible to debug client code without logging, that has to be fixed.

Please add appropriate debug into the core client code as well as particular subprojects (index, sessions and so on) and I will merge pull request. I can merge this right now if you guarantee to implement this in the next pull request