Click or drag to resize

V8RuntimeCreateScriptEngine Method (V8ScriptEngineFlags, Int32)

Creates a new V8 script engine instance with the specified options and debug port.

Namespace:  Microsoft.ClearScript.V8
Assembly:  ClearScript.V8 (in ClearScript.V8.dll) Version: 7.2.5
Syntax
public V8ScriptEngine CreateScriptEngine(
	V8ScriptEngineFlags flags,
	int debugPort
)

Parameters

flags
Type: Microsoft.ClearScript.V8V8ScriptEngineFlags
A value that selects options for the operation.
debugPort
Type: SystemInt32
A TCP port on which to listen for a debugger connection.

Return Value

Type: V8ScriptEngine
A new V8 script engine instance.
Remarks

The new script engine instance shares the V8 runtime with other instances created by this method and any of its overloads.

V8 supports one script debugger per runtime. If script debugging has been enabled in the current runtime, additional script engine instances cannot disable it or change its TCP port, nor can they enable script debugging on a different port.

See Also