modernized step5 of tutorial, shows especially how the new debug window is used