Skip to content

Commit

Permalink
Merge pull request #168 from facebook/no-trap-exceptions
Browse files Browse the repository at this point in the history
Evaluate with SetTrapExceptions set to False
  • Loading branch information
kastiglione authored Aug 26, 2016
2 parents 6cb66c6 + e3dd4ef commit c3d7e95
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion fblldbbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def evaluateExpressionValue(expression, printErrors=True):
frame = lldb.debugger.GetSelectedTarget().GetProcess().GetSelectedThread().GetSelectedFrame()
options = lldb.SBExpressionOptions()
options.SetLanguage(lldb.eLanguageTypeObjC_plus_plus)
options.SetTrapExceptions(False)
value = frame.EvaluateExpression(expression, options)
error = value.GetError()

Expand All @@ -61,7 +62,9 @@ def evaluateInputExpression(expression, printErrors=True):
return evaluateExpressionValue(expression, printErrors).GetValue()

frame = lldb.debugger.GetSelectedTarget().GetProcess().GetSelectedThread().GetSelectedFrame()
value = frame.EvaluateExpression(expression)
options = lldb.SBExpressionOptions()
options.SetTrapExceptions(False)
value = frame.EvaluateExpression(expression, options)
error = value.GetError()

if printErrors and error.Fail():
Expand Down

0 comments on commit c3d7e95

Please sign in to comment.