debug get_meas_with_sample