jaberwacky Posted October 6, 2010 Posted October 6, 2010 (edited) Most likely a SciTE bug... $a = 0 $b = 1 Put the cursor at the start of line 2, just before "$b" and hit Ctrl-Shift-d to insert a debug MsgBox(). $a = 0 $b = 1 MsgBox(262144,'Debug line ~' & @ScriptLineNumber,'Selection:' & @lf & ' $b' & @lf & @lf & 'Return:' & @lf & $b) ;### Debug MSGBOX Updated post to conform to PsaltyDS's sensible approach. Edited October 8, 2010 by jaberwocky6669 Helpful Posts and Websites: AutoIt3 Variables and Function Parameters MHz | AutoIt Wiki | Using the GUIToolTip UDF BrewManNH | Can't find what you're looking for on the Forum?
PsaltyDS Posted October 6, 2010 Posted October 6, 2010 All you need is this to demo: $a = 0 $b = 1 Put the cursor at the start of line 2, just before "$b" and hit Ctrl-Shift-d to insert a debug MsgBox(). Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
trung0407 Posted October 6, 2010 Posted October 6, 2010 you might want to look at this http://www.autoitscript.com/forum/index.php?showtopic=21834
jaberwacky Posted October 6, 2010 Author Posted October 6, 2010 (edited) On 10/6/2010 at 8:45 PM, 'PsaltyDS said: All you need is this to demo: $a = 0 $b = 1 Put the cursor at the start of line 2, just before "$b" and hit Ctrl-Shift-d to insert a debug MsgBox(). Yeah, that's a much better example. Lulz, when I was here earlier today I wasn't exactly ready for primetime. Quote you might want to look at this http://www.autoitscript.com/forum/index.php?showtopic=21834Um, yeah, no Ok, yeah, well, I wouldn't use it for something so small. A couple of well placed print statements will do the trick. Anyways, it isn't earth shattering just something to look out for if you use 'debug to msgbox' Edited October 6, 2010 by jaberwocky6669 Helpful Posts and Websites: AutoIt3 Variables and Function Parameters MHz | AutoIt Wiki | Using the GUIToolTip UDF BrewManNH | Can't find what you're looking for on the Forum?
Developers Jos Posted October 7, 2010 Developers Posted October 7, 2010 Uploaded a updated AutoItTools.lua which removes any CR or LF characters from the debug statement. Give it a try to see if that works for you too. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
PsaltyDS Posted October 7, 2010 Posted October 7, 2010 Worked for me. Output: $a = 0 MsgBox(262144,'Debug line ~' & @ScriptLineNumber,'Selection:' & @lf & '$a' & @lf & @lf & 'Return:' & @lf & $a) ;### Debug MSGBOX $b = 1 MsgBox(262144,'Debug line ~' & @ScriptLineNumber,'Selection:' & @lf & '$b' & @lf & @lf & 'Return:' & @lf & $b) ;### Debug MSGBOX Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
jaberwacky Posted October 8, 2010 Author Posted October 8, 2010 (edited) Yup, works fer me! Thanks once again Jos. I hope you didn't work too hard to fix that bug, oh lordy. Because, you know, the fate of mankind's future rested in the balance. Well gosh, since I'm on a roll. If you use Trace: Add trace lines. Save the file. And then Trace: Remove all trace lines it takes all of the blank lines with it too. I know I could just ctrl-z. Edited October 8, 2010 by jaberwocky6669 Helpful Posts and Websites: AutoIt3 Variables and Function Parameters MHz | AutoIt Wiki | Using the GUIToolTip UDF BrewManNH | Can't find what you're looking for on the Forum?
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