How do you control drawing the debug lines? It should be conditioned by a global variable that sets the editor in debug (pass as command line argument).