Jump to content

Recommended Posts

Posted

Hello!

My debug routine is usually consists of Opt("TrayIconDebug", 1) and MsgBoxes, or maybe console writes.

Is there a function or UDF or anything, that shows what went down in the script during a run? I mean like TrayIconDebug, but it shows the whole script and how it went, when he did what? I think it would be a very usefull tool.

I ask because I ran into a problem when one of my program exit after a script and I have no idea why! (I can post the code if you are interested, but this isn not my original question :) )

Also If you happen to have any pointer to improve my debuging process, It would be very helpful for future me :)

Thank you and have a nice day!

  • Moderators
  • Solution
Posted

SorryButImaNewbie,

Assuming you run the full SciTE4AutoIt3 package, adding the following directives will show you every line that ran in the SciTE console: :)

#AutoIt3Wrapper_Run_Debug_Mode=   ;(Y/N) Run Script with console debugging. Default=N
#AutoIt3Wrapper_Run_Debug=        ;(On/Off) Switch debugging on/off
However, I have always found that having it switched on for the whole script is a bit of an overkill, so I tend only to use it on small sections after having used other debugging methods (ConsoleWrite/MsgBox) to narrow down the area causing the problem. In fact, doing that high level debugging usually points out the error without having to resort to the more detailed "line by line" approach. ;)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...