字符串条件断点
(gdb) break my_function (gdb) condition <breakpoint_number> (int)strcmp(my_string.c_str(), "target_value") == 0
set environment NDEBUG 1: 取消assert语句的执行
set environment NDEBUG 1