开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜