setScriptSource method
Live edit is no longer supported and this command always fails with a "no longer available" error.
scriptId Id of the script to edit.
scriptSource New content of the script.
dryRun If true the change will not actually be applied. Dry run may be used to get result
description without actually modifying the code.
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.
Implementation
@Deprecated('This command is deprecated')
Future<SetScriptSourceResult> setScriptSource(
runtime.ScriptId scriptId,
String scriptSource, {
bool? dryRun,
bool? allowTopFrameEditing,
}) async {
var result = await _client.send('Debugger.setScriptSource', {
'scriptId': scriptId,
'scriptSource': scriptSource,
'dryRun': ?dryRun,
'allowTopFrameEditing': ?allowTopFrameEditing,
});
return SetScriptSourceResult.fromJson(result);
}