我閱讀help breakpoint set
的文檔,它告訴我可以使用breakpoint set -w <boolean>
來設置異常拋出的斷點。lldb使用「-w」設置異常斷點
讓我困惑的是我無法設置布爾值。 我試過breakpoint set -w true
和breakpoint set -w 1
和breakpoint set -w yes
,但他們都沒有意義,lldb總是告訴我error: invalid combination of options for the given command
。
所以,我的問題是:如何使用breakpoint set -w <boolean>
命令啓用異常斷點?
是的,我知道Xcode可以很容易地做到這一點,沒有任何打字,但我想知道如何在命令行中啓用它。