SorryButImaNewbie

debuging 2.0

3 posts in this topic

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!

Share this post


Link to post
Share on other sites



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

1 person likes this

Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______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

 

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Thank you master Melba23!

I try this at once

Edit for results: Aww Yiss, Motha f**kin bread crumbs

Edited by SorryButImaNewbie

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