调试AutoIt脚本或获取当前执行的脚本行号 [英] Debugging an AutoIt script or get currently executed script line number

查看:227
本文介绍了调试AutoIt脚本或获取当前执行的脚本行号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的AutoIt脚本发送单击和按键列表,以自动执行旧的关闭源应用程序.

My AutoIt script sends a list of clicks and key-presses to automate an old closed source application.

它有bug,所以我想知道如何调试AutoIt脚本.或至少输出脚本的行号(以显示实时执行的代码).

It has bugs so I want to know how I can debug AutoIt scripts. Or at least output the script's line number (to show code executed in real time).

推荐答案

在SciTE中,从工具"中选择跟踪:添加跟踪线".如果未选择任何内容,这将向每行添加一个ConsoleWrite.如果先选择一些代码,它将在您选择的内容中添加ConsoleWrite行.

In SciTE from Tools select "Trace: Add trace lines". This will add a ConsoleWrite to each line if nothing is selected. If you select some code first it will add ConsoleWrite lines to what you have selected.

如果在编译后的代码中出现错误,则可以在编译之前将其添加到脚本的顶部.当它出错时,它将在脚本中为您提供正确的行号.

If you are getting an error in your compiled code you can add this to the top of your script before compiling it. When it errors out it will give you the right line number in your script.

#Au3Stripper_Parameters=/mo

这篇关于调试AutoIt脚本或获取当前执行的脚本行号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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