Mode

Available inspection modes.

Entries

Link copied to clipboard

Simply allows a connection without additional behavior. It is not ideal for short scripts, but it can be useful for long-running scripts where you might occasionally want to set breakpoints.

Link copied to clipboard

Same as Run mode, but additionally sets a breakpoint at the first line to pause script execution before any code runs.

Link copied to clipboard

Similar to Brk mode, but instead of setting a breakpoint at the first line, it pauses script execution until an inspector session is connected.

Properties

Link copied to clipboard
val entries: EnumEntries<ServeInspect.Mode>

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Functions

Link copied to clipboard
fun valueOf(value: String): ServeInspect.Mode

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.