Closed 3da closed 1 year ago
Hi @3da,
I want to execute some scripts and then turn on Debug mode.
You can use DocumentFlags.AwaitDebuggerAndPause
. Here's an example:
engine.AddHostType(typeof(Console));
engine.Execute("Console.WriteLine('This script runs immediately.')");
engine.Execute(
new DocumentInfo { Flags = DocumentFlags.AwaitDebuggerAndPause },
"Console.WriteLine('This script waits for a debugger connection.')"
);
However, that flag has some limitations. Please consult the documentation page.
Good luck!
Thanks, great!
I want to toggle V8 engine into Debug state not from start. I want to execute some scripts and then turn on Debug mode.
Is it possible?