Add method to handle CLASS_BASIC+CANCEL_OK
Fix the frame debug when frame_end is None