auto generate decode code debug