add debug mode to tutorial.