Inno Setup: How to watch variables values or write to debug output?

后端 未结 1 1922
余生分开走
余生分开走 2021-02-06 22:21

How can I watch values of variables while debugging in Inno Setup? How can I print something to debug output?

Thanks

相关标签:
1条回答
  • 2021-02-06 22:35

    There's currently no debug watch window, but you can simply hover the variable you want to inspect, when the debugger is stopped on a breakpoint. To print something to a debug output, use the Log procedure:

    procedure InitializeWizard;
    var
      Value: Integer;
    begin
      Value := 123;
      Log('The Value is: ' + IntToStr(Value));
    end;
    

    Here is the result of the hovered Value variable from the previous script sample:

    enter image description here

    And the result of the debug output window after when you step over the Log statement:

    enter image description here

    0 讨论(0)
提交回复
热议问题