Debugging todo.php