run debug phase in context manager