Class SetScriptSourceCommandSettings
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.
public sealed class SetScriptSourceCommandSettings : ICommand
- Inheritance
-
SetScriptSourceCommandSettings
- Implements
- Inherited Members
Properties
AllowTopFrameEditing
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.
[JsonPropertyName("allowTopFrameEditing")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public bool? AllowTopFrameEditing { get; set; }
Property Value
- bool?
CommandName
Gets the name of the command.
[JsonIgnore]
public string CommandName { get; }
Property Value
DryRun
If true the change will not actually be applied. Dry run may be used to get result description without actually modifying the code.
[JsonPropertyName("dryRun")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public bool? DryRun { get; set; }
Property Value
- bool?
ScriptId
Id of the script to edit.
[JsonPropertyName("scriptId")]
public string ScriptId { get; set; }
Property Value
ScriptSource
New content of the script.
[JsonPropertyName("scriptSource")]
public string ScriptSource { get; set; }