XCode具有設置斷點的功能,然後運行lldb命令和「評估後自動繼續」。LLDB - 評估並繼續
如何通過--source
設置相同的功能?發現手冊中--command
報價,但沒有實例和子命令的幫助沒有提及
By default, the breakpoint command add command takes lldb command line commands. You can also specify this explicitly by passing the "--command" option.
Syntax: command <sub-command> [<sub-command-options>] <breakpoint-id>
我不完全清楚你在問什麼。你想把一個自動繼續的命令放在一個文本文件的某個地方,這個文件產生斷點並向它添加命令,然後執行: –