Textfield switch debuggin