c++ and js enable debug draw