debug command input and run command