Update Mode.php

Add class name to the debug message