run(_:with:enableBreakpoints:)¶
Runs a script.
Declaration
func run(
_ script: Script,
with arguments: [String] = [],
enableBreakpoints: Bool = false
) async throws -> Int
Parameters
script: The script to run.
arguments: Arguments passed to
sys.argv.enableBreakpoints: Indicates whether a tracer should be installed for triggering
breakpoints. Significantly slows down execution because of the use ofsys.settrace.
Throws
An Exception if a Python exception was raised. Otherwise, an Error.
Returns
The exit code (0 = success).