Skip to main content

SET_SCRIPT_SOURCE

Constant SET_SCRIPT_SOURCE 

Source
pub const SET_SCRIPT_SOURCE: &str = "Debugger.setScriptSource";
Expand description

Edits JavaScript source live. In general, functions that are currently on the stack can not be edited with a single exception: If the edited function is the top-most stack frame and that is the only activation of that function on the stack. In this case the live edit will be successful and a Debugger.restartFrame for the top-most function is automatically triggered.

Parameters:

  • scriptId: Runtime.ScriptId
  • scriptSource: string
  • dryRun: boolean (optional)
  • allowTopFrameEditing: boolean (optional)

Returns: callFrames, stackChanged, asyncStackTrace, asyncStackTraceId, status, exceptionDetails