Inno设置:如何观察变量值或写入调试输出? [英] Inno Setup: How to watch variables values or write to debug output?

查看:984
本文介绍了Inno设置:如何观察变量值或写入调试输出?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Inno Setup中调试时如何观察变量的值?如何打印一些东西来调试输出?

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

谢谢

推荐答案

目前没有调试监视窗口,但是当调试器在断点上停止时,您可以直接悬停要检查的变量。要将某些内容打印到调试输出中,请使用 Log procedure:

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:

当您跨越 Log 语句时,调试输出窗口的结果:

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

这篇关于Inno设置:如何观察变量值或写入调试输出?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆