Sign in to follow this  
Followers 0
longisland

How to debug a script?

5 posts in this topic

I have some work in progress with autoit, however, as my code gets longer and longer, it's getting harder to debug it by inserting msgboxes. Is there a better way to debug? for example a step by step run and display variable values along the way?

I was really troubled by the difficulties in debugging. Please please help me here.

Share this post


Link to post
Share on other sites



Do a forum search, there are some threads about that topic, i think one is in the planning

Share this post


Link to post
Share on other sites

Use the Scite Editor. Reasons:

- Code Highlighting (that fixes 90% of code issues right there).

- Embedded communication with ConsoleWrite that allows you to debug without constant messageboxes.

- Syntax checking built-in (you can check for mistypes at any time).

You can then use ConsoleWrite("debug message") in your scripts for debugging that will only be shown when running from scite.

Another option is here. I still recommend scite for the highlighting features and automatic syntax checking.


Who else would I be?

Share this post


Link to post
Share on other sites

Use the Scite Editor. Reasons:

- Code Highlighting (that fixes 90% of code issues right there).

- Embedded communication with ConsoleWrite that allows you to debug without constant messageboxes.

- Syntax checking built-in (you can check for mistypes at any time).

You can then use ConsoleWrite("debug message") in your scripts for debugging that will only be shown when running from scite.

Another option is here. I still recommend scite for the highlighting features and automatic syntax checking.

thx a lot, that really helps. I'll explore these options.

PS:I love this forum. The replies are so spontaneous.

Share this post


Link to post
Share on other sites

I have some work in progress with autoit, however, as my code gets longer and longer, it's getting harder to debug it by inserting msgboxes. Is there a better way to debug? for example a step by step run and display variable values along the way?

I was really troubled by the difficulties in debugging. Please please help me here.

You can also take a look at this: AutoIt Graphical Debugger


“Give a man a script; you have helped him for today. Teach a man to script; and you will not have to hear him whine for help.”AutoIt4UE - Custom AutoIt toolbar and wordfile for UltraEdit/UEStudio users.AutoIt Graphical Debugger - A graphical debugger for AutoIt.SimMetrics COM Wrapper - Calculate string similarity.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0