SetScriptSourceRequest

@Serializable
data class SetScriptSourceRequest(val scriptId: ScriptId, val scriptSource: String, val dryRun: Boolean? = null, val allowTopFrameEditing: Boolean? = null)(source)

Request object containing input parameters for the DebuggerDomain.setScriptSource command.

Constructors

Link copied to clipboard
constructor(scriptId: ScriptId, scriptSource: String, dryRun: Boolean? = null, allowTopFrameEditing: Boolean? = null)

Types

Link copied to clipboard
class Builder(val scriptId: ScriptId, val scriptSource: String)

Properties

Link copied to clipboard

If true, then scriptSource is allowed to change the function on top of the stack as long as the top-most stack frame is the only activation of that function.

Link copied to clipboard
val dryRun: Boolean? = null

If true the change will not actually be applied. Dry run may be used to get result description without actually modifying the code.

Link copied to clipboard

Id of the script to edit.

Link copied to clipboard

New content of the script.