Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion ClearScript/V8/V8ScriptEngine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -692,6 +692,19 @@ public void CollectCpuProfileSample()
proxy.CollectCpuProfileSample();
}

/// <summary>
/// Specifies that the script engine is to wait for a debugger connection and schedule a
/// pause before executing the next application script. This method is
/// ignored if <see cref="V8ScriptEngineFlags.EnableDebugging"/> is not specified.
/// </summary>
public void AwaitDebuggerOnNextExecution()
{
if (engineFlags.HasFlag(V8ScriptEngineFlags.EnableDebugging))
{
awaitDebuggerAndPause = true;
}
}

/// <summary>
/// Gets or sets the time interval between automatic CPU profile samples, in microseconds.
/// </summary>
Expand All @@ -713,7 +726,6 @@ public uint CpuProfileSampleInterval
proxy.CpuProfileSampleInterval = value;
}
}

#endregion

#region internal members
Expand Down