Trigger when a debug command is received, used to handle various commands sent from the debug console.