Chris wrote:
It would be easy enough to implement, but it would slightly impact the overall performance of the program because an additional check must be performed after every line of code.
clarification: would this be true of all scripts, even those not using the option? if so, then i can really appreciate why you wouldn't want to do this
in that case i would like to suggest that we could have the option of more lines listed if needed. 2000 or so would allow me to see some of the "main" lines (outside of loops) that i usually can't see in the listing.
i've looked at OutputDebug a little, and i use Msgboxs all the time, but i can't figure out how i would be able to see lists of executed lines that are between large loops with these, but maybe that's my unfamailarity with OutputDebug (i probably should look at it some more)
also - what i didn't put in my 1st post is that i use your suggestion of -
listlines
pause
all the time, with hotkeys to puase/suspend/reload - in fact i just used my 3 char hotstring - dbl - to add these lines in this post, but i often need more than that
my main script is large, complex and poorly written enough (i'm still learning programming) that i sometimes have to cut/past the listlines to a file and go over it one line at a time to figure out where the prob is.
i just noticed this comming in -
PhiLho wrote:
I nearly never use ListLines to debug, I use ListVars more frequently.
Hopefully, real debugger support would make this wish less needed.
i also use ListVars all the time, and you are absolutely right about a real debugger, but i need something more that i can use until then.
the main difference between us is that you are a great programmer while i'm still just a novice bungling along the best that i can.
you would have finished my main script (now in ver 150 - both major and minor) months ago and it would work twice as well.
you don't need the lines listed but i can't do without them
i've googled this site for debug and listlines and came up with very little, so any revelant suggestions from anyone would be greatly appreciated