【发布时间】:2020-10-05 08:59:13
【问题描述】:
在我的python-lldb 脚本完成后,有没有更好的方法来发出 continue 命令?
def HelloWorld(debugger, command, result, internal_dict):
"""
HelloWorld function. It will print "Hello World", regardless of where lldb stopped.
Auto-Continues after script has ran.
"""
target = debugger.GetSelectedTarget()
process = target.GetProcess()
print("[*] Hello World from :{}".format(process))
process.Continue()
该示例将控制权交还给应用,但我不再拥有交互式 lldb 控制台。
此页面上的答案没有帮助: LLDB: silently continue after python script is done executing
旁注:如果我通过XCode 或Terminal 附加,则行为相同。
【问题讨论】: