lldb watchpoint 哨兵折騰

   

    略疼,檢測哨兵用的都不順。


    記錄備案:

    b 31

    run

    watch set var flag 

    watchpoint modify -c '(flag==10)'

    c

    del b 1

    c

   %  if want watch flag with another values, need again add the breakpoint first

   b 31

   c

   watchpoint modify -c '(flag==20)'

   c 

   c

   watchpoint modify -c '(flag==40)'

   c

   ...      



  Or in the IDE (Xcode) Environment, simple edit breakpoint with condition

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章