autoitWV Posted March 28, 2011 Share Posted March 28, 2011 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 More sharing options...
Moderators Melba23 Posted March 28, 2011 Moderators Share Posted March 28, 2011 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. 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. So no step-by-step debugger, but lots of other ways to debug. I hope you find this useful. M23 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 columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
autoitWV Posted March 28, 2011 Author Share Posted March 28, 2011 Nicely answered! A bit disapointing because I have never programmed without the benefit of step by step debugging with consolewrite and msgboxes. You folks must be made of some really tough stuff! Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted March 28, 2011 Moderators Share Posted March 28, 2011 autoitWV,You folks must be made of some really tough stuff!Not really! 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 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 columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now