debug stub generator