1

I have a AHK script which I need to debug. I basically want to see which line number is being currently executed in the script (which piece of code).

Is there a way to do that? Or anything close to that for debugging? I am using this AHK script to automate some windows explorer related task. But sometimes it gets stuck in between and I have no idea where the script gets stuck. If I knew the current line number being executed, it would be great. Using Msgbox after each line is not possible and very inefficient.

Could someone please help me with this?

Also, I am new to AHK scripting so I would be grateful if you could explain with a short example if possible.

Thanks Sunny

1
  • |>" On a related note, the built-in variables A_LineNumber and A_LineFile contain the currently executing line number and the file name to which it belongs. <| \ autohotkey.com/docs/v2/lib/ListLines.htm#Remarks Commented May 12, 2024 at 0:30

1 Answer 1

1

To list recent lines, you can show it programmatically by adding the command ListLines to your code.

OR right-click the AutoHotkey icon, select Open, and select Lines most recently executed in the View menu.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.