Jump to content

debug and editor features


Recommended Posts

Hi, just started today. Since I have never programmed without single stepping to find errors, I was confused when I could not find this feature on the scite editor. Perhaps there is another editor I could use that can single step and run to cursor. I maybe there is a tutorial for activating these features.

Anyway, I am sure somebody has had this problem before. I looked it up in the forum search and found a reference to it in 2004. That reference is:

Posted 29 April 2004 - 09:02 PM

Things that might help:

Opt("TrayIconDebug", 1) ;put at beginning of script

; hover over the tray icon to get current script line number

Use MsgBox or TrayTip to display results after every line

Full Debug features will be added soon. Hope that helps

Thanking you in advance,

autoitWV

Link to comment
Share on other sites

  • Moderators

autoitWV,

Welcome to the AutoIt forum. :)

Alas there is still no step-by-step debugger. There are a number of scripts in the examples section, but most do not work well in Vista+ because of the added inter-process security. :P

So most of us use ConsoleWrite and MsgBox at strategic points in the code to debug. Opt("TrayIconDebug", 1) is useful if your script hangs - you can at least see where it got to! ;)

If you use the full SciTE4AutoIt3 package you can also use the AutoIt3Wrapper directive #AutoIt3Wrapper_Run_Debug_Mode=Y - see here for how to use it. If you do not use SciTE4AutoIt3, then you should - you can find it here - lots of extras to make coding in AutoIt a lot easier. And even some additonal debugging aids - but I will leave you to discover those. :D

So no step-by-step debugger, but lots of other ways to debug. I hope you find this useful. :)

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:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

  • Moderators

autoitWV,

You folks must be made of some really tough stuff!

Not really! :P

I too found it a little strange at first, but now it is almost second nature to add some debugging code as I write the script. That way I do not have to add it later (when as nearly always the script does not do what I think it should! :) ) and it is very easy to comment out again when not required. :)

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:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
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
 Share

  • Recently Browsing   0 members

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