SBExpressionOptions#

class lldb.SBExpressionOptions(*args)#

A container for options to use when evaluating expressions.

Methods Summary

GetAllowJIT(SBExpressionOptions self)

Gets whether to JIT an expression if it cannot be interpreted.

GetAutoApplyFixIts(SBExpressionOptions self)

Gets whether to auto-apply fix-it hints to an expression.

GetCoerceResultToId(SBExpressionOptions self)

GetFetchDynamicValue(SBExpressionOptions self)

GetGenerateDebugInfo(SBExpressionOptions self)

GetIgnoreBreakpoints(SBExpressionOptions self)

GetOneThreadTimeoutInMicroSeconds(...)

GetPrefix(SBExpressionOptions self)

Gets the prefix to use for this expression.

GetRetriesWithFixIts(SBExpressionOptions self)

Gets how often LLDB will retry applying fix-its to an expression.

GetStopOthers(SBExpressionOptions self)

GetSuppressPersistentResult(...)

GetTimeoutInMicroSeconds(...)

GetTopLevel(SBExpressionOptions self)

GetTrapExceptions(SBExpressionOptions self)

GetTryAllThreads(SBExpressionOptions self)

GetUnwindOnError(SBExpressionOptions self)

SetAllowJIT(SBExpressionOptions self, bool allow)

Sets whether to JIT an expression if it cannot be interpreted.

SetAutoApplyFixIts(SBExpressionOptions self, ...)

Sets whether to auto-apply fix-it hints to the expression being evaluated.

SetCoerceResultToId(...)

Sets whether to coerce the expression result to ObjC id type after evaluation.

SetFetchDynamicValue(...)

Sets whether to cast the expression result to its dynamic type.

SetGenerateDebugInfo(...)

Sets whether to generate debug information for the expression and also controls if a SBModule is generated.

SetIgnoreBreakpoints(...)

Sets whether to ignore breakpoint hits while running expressions.

SetLanguage(SBExpressionOptions self, lldb)

Sets the language that LLDB should assume the expression is written in

SetOneThreadTimeoutInMicroSeconds(...)

Sets the timeout in microseconds to run the expression on one thread before either timing out or trying all threads.

SetPrefix(SBExpressionOptions self, ...)

Sets the prefix to use for this expression.

SetRetriesWithFixIts(...)

Sets how often LLDB should retry applying fix-its to an expression.

SetStopOthers(SBExpressionOptions self, ...)

Sets whether to stop other threads at all while running expressions.

SetSuppressPersistentResult(...)

Sets whether to produce a persistent result that can be used in future expressions.

SetTimeoutInMicroSeconds(...)

Sets the timeout in microseconds to run the expression for.

SetTopLevel(SBExpressionOptions self, ...)

SetTrapExceptions(SBExpressionOptions self, ...)

Sets whether to abort expression evaluation if an exception is thrown while executing.

SetTryAllThreads(SBExpressionOptions self, ...)

Sets whether to run all threads if the expression does not complete on one thread.

SetUnwindOnError(SBExpressionOptions self, ...)

Sets whether to unwind the expression stack on error.

Methods Documentation

GetAllowJIT(SBExpressionOptions self) bool#

Gets whether to JIT an expression if it cannot be interpreted.

GetAutoApplyFixIts(SBExpressionOptions self) bool#

Gets whether to auto-apply fix-it hints to an expression.

GetCoerceResultToId(SBExpressionOptions self) bool#
GetFetchDynamicValue(SBExpressionOptions self) lldb::DynamicValueType#
GetGenerateDebugInfo(SBExpressionOptions self) bool#
GetIgnoreBreakpoints(SBExpressionOptions self) bool#
GetOneThreadTimeoutInMicroSeconds(SBExpressionOptions self) uint32_t#
GetPrefix(SBExpressionOptions self) char const *#

Gets the prefix to use for this expression.

GetRetriesWithFixIts(SBExpressionOptions self) uint64_t#

Gets how often LLDB will retry applying fix-its to an expression.

GetStopOthers(SBExpressionOptions self) bool#
GetSuppressPersistentResult(SBExpressionOptions self) bool#
GetTimeoutInMicroSeconds(SBExpressionOptions self) uint32_t#
GetTopLevel(SBExpressionOptions self) bool#
GetTrapExceptions(SBExpressionOptions self) bool#
GetTryAllThreads(SBExpressionOptions self) bool#
GetUnwindOnError(SBExpressionOptions self) bool#
SetAllowJIT(SBExpressionOptions self, bool allow)#

Sets whether to JIT an expression if it cannot be interpreted.

SetAutoApplyFixIts(SBExpressionOptions self, bool b=True)#

Sets whether to auto-apply fix-it hints to the expression being evaluated.

SetCoerceResultToId(SBExpressionOptions self, bool coerce=True)#

Sets whether to coerce the expression result to ObjC id type after evaluation.

SetFetchDynamicValue(SBExpressionOptions self, lldb::DynamicValueType dynamic=eDynamicCanRunTarget)#

Sets whether to cast the expression result to its dynamic type.

SetGenerateDebugInfo(SBExpressionOptions self, bool b=True)#

Sets whether to generate debug information for the expression and also controls if a SBModule is generated.

SetIgnoreBreakpoints(SBExpressionOptions self, bool ignore=True)#

Sets whether to ignore breakpoint hits while running expressions.

SetLanguage(SBExpressionOptions self, lldb::LanguageType language)#

Sets the language that LLDB should assume the expression is written in

SetOneThreadTimeoutInMicroSeconds(SBExpressionOptions self, uint32_t timeout=0)#

Sets the timeout in microseconds to run the expression on one thread before either timing out or trying all threads.

SetPrefix(SBExpressionOptions self, char const * prefix)#

Sets the prefix to use for this expression. This prefix gets inserted after the ‘target.expr-prefix’ prefix contents, but before the wrapped expression function body.

SetRetriesWithFixIts(SBExpressionOptions self, uint64_t retries)#

Sets how often LLDB should retry applying fix-its to an expression.

SetStopOthers(SBExpressionOptions self, bool stop_others=True)#

Sets whether to stop other threads at all while running expressions. If false, TryAllThreads does nothing.

SetSuppressPersistentResult(SBExpressionOptions self, bool b=False)#

Sets whether to produce a persistent result that can be used in future expressions.

SetTimeoutInMicroSeconds(SBExpressionOptions self, uint32_t timeout=0)#

Sets the timeout in microseconds to run the expression for. If try all threads is set to true and the expression doesn’t complete within the specified timeout, all threads will be resumed for the same timeout to see if the expression will finish.

SetTopLevel(SBExpressionOptions self, bool b=True)#
SetTrapExceptions(SBExpressionOptions self, bool trap_exceptions=True)#

Sets whether to abort expression evaluation if an exception is thrown while executing. Don’t set this to false unless you know the function you are calling traps all exceptions itself.

SetTryAllThreads(SBExpressionOptions self, bool run_others=True)#

Sets whether to run all threads if the expression does not complete on one thread.

SetUnwindOnError(SBExpressionOptions self, bool unwind=True)#

Sets whether to unwind the expression stack on error.