Further updates to tutorial 2's debug.cpp