Delphi Web Script: How to Debug a specific Script Function
Thanks to TdwsDebugger I can debug a complete script using:
Debugger := TdwsDebugger.Create(nil);
Debugger.BeginDebug(Execution);
In my use case I don't run the whole script, but only a function of it:
var Func: IInfo;
begin
[...]
Func := Execution.Info.Func['MyFunction'];
Result := Func.Call.Value;
end;
How can I invoke the TdwsDebu开发者_开发知识库gger now?
You have to manually setup the Debugger on your execution (via BeginDebug/EndDebug). You can see some sample code in UDebuggerTests.
You can make your calls before the EndDebug.
精彩评论