MT#8699 fix debugger.reset_msgid

(cherry picked from commit fe7f161d1676b9f24f8d51cfeb7c16d627ca0ffb)