Click or drag to resize

DebuggerClientSetScriptSourceAsync Method

Version 89.0.170
Edits JavaScript source live.

Namespace:  CefSharp.DevTools.Debugger
Assembly:  CefSharp (in CefSharp.dll) Version: 89.0.170.0 (89.0.170.0)
Syntax
public Task<SetScriptSourceResponse> SetScriptSourceAsync(
	string scriptId,
	string scriptSource,
	Nullable<bool> dryRun = null
)

Parameters

scriptId
Type: SystemString
Id of the script to edit.
scriptSource
Type: SystemString
New content of the script.
dryRun (Optional)
Type: SystemNullableBoolean
If true the change will not actually be applied. Dry run may be used to get resultdescription without actually modifying the code.

Return Value

Type: TaskSetScriptSourceResponse
returns System.Threading.Tasks.Task<SetScriptSourceResponse>
See Also