(useSwift=False, ignoreBreakpoints=False, useID=True)
| 39 | |
| 40 | |
| 41 | def genExpressionOptions(useSwift=False, ignoreBreakpoints=False, useID=True): |
| 42 | options = lldb.SBExpressionOptions() |
| 43 | options.SetIgnoreBreakpoints(ignoreBreakpoints); |
| 44 | options.SetTrapExceptions(False); |
| 45 | options.SetFetchDynamicValue(lldb.eDynamicCanRunTarget); |
| 46 | options.SetTimeoutInMicroSeconds (30*1000*1000) # 30 second timeout |
| 47 | options.SetTryAllThreads (True) |
| 48 | options.SetUnwindOnError(True) |
| 49 | options.SetGenerateDebugInfo(True) |
| 50 | if useSwift: |
| 51 | options.SetLanguage (lldb.eLanguageTypeSwift) |
| 52 | else: |
| 53 | options.SetLanguage (lldb.eLanguageTypeObjC_plus_plus) |
| 54 | options.SetCoerceResultToId(useID) |
| 55 | return options |
| 56 | |
| 57 | def getTarget(error=None): |
| 58 | target = lldb.debugger.GetSelectedTarget() |
no outgoing calls
no test coverage detected
searching dependent graphs…