Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow "Await Debugger" in V8 at any time, rather than just on startup #121

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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