How do I use stack content in an LLDB breakpoint condition?

后端 未结 2 1650
盖世英雄少女心
盖世英雄少女心 2021-01-02 05:10

The problem:

I\'ve got a situation where we have a media playback during launch, and objc_exception_throw() hits about 5 times during that period, b

2条回答
  •  萌比男神i
    2021-01-02 05:31

    break command add -s python -o "return any('xyz' in f.name for f in frame.thread)"
    

    If a python breakpoint command returns False, lldb will keep going. So this is saying: if any frame in the stack has the string 'xyz' in its name, then return True (to stop). Otherwise if no frame has that name, this any expression will return False (to keep going).

提交回复
热议问题