Darien Posted September 5, 2016 Posted September 5, 2016 When an error occurs in a compiled script, the line number where the error occurred does not match. I noticed that blank lines and lines with only comments are ignored. in the attached example, it is advised that the error occurred on line 2, although in line 4. How to make it warned the correct line? teste.au3
IanN1990 Posted September 6, 2016 Posted September 6, 2016 (edited) If my understanding is correct, when you compile code it removes spaces / lines and everything "Human" about scripting. As to computers its wasted space So line 4 becomes line 2 If you compile this dim $a [1] MsgBox(0,"",$a[1]) You see it shows line 2 is your error and to remove the rror dim $a = [""] MsgBox(0,"",$a[0]) ;or dim $a[1] MsgBox(0,"",$a[0]) ;or dim $a[2] MsgBox(0,"",$a[1]) Edited September 6, 2016 by IanN1990
InunoTaishou Posted September 6, 2016 Posted September 6, 2016 #AutoIt3Wrapper_Run_Au3Stripper=y #Au3Stripper_Parameters=/MO If you've got the full version of scite installed these wrappers will create a stripped copy of your script, allowing you to match errors in a .exe with the stripped .au3 file
Darien Posted September 6, 2016 Author Posted September 6, 2016 I understand, InunoTaishou. Thank you.
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