TimRude Posted August 27, 2023 Share Posted August 27, 2023 If my script contains the directive #AutoIt3Wrapper_Run_Au3Stripper=y and I compile it successfully (with 3.3.16.1) into an exe and the exe later experiences a a hard error such as "Variable subscript badly formatted", is it safe to assume that the line number reported by the exe for the error is the line number in the scriptname_stripped.au3 file that was produced by Au3Stripper when compiling? Within the scriptname_stripped.au3 file, I can see all of the 'include'd code as well as my code, and I didn't specify any additional Au3Stripper options. Link to comment Share on other sites More sharing options...
Developers Solution Jos Posted August 27, 2023 Developers Solution Share Posted August 27, 2023 Correct, although there still could be a little difference depending on the used directives. Aut2exe normally does the adding of all includefiles and stripping of the directives and commentlines, which is now already done by au3stripper, except the directives which are still required by aut2exe. TimRude 1 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. Link to comment Share on other sites More sharing options...
Musashi Posted August 27, 2023 Share Posted August 27, 2023 This topic has been discussed several times. If you enter your question directly into the search engine of your choice, you will find corresponding matches, e.g. : "In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move." Link to comment Share on other sites More sharing options...
TimRude Posted August 27, 2023 Author Share Posted August 27, 2023 7 hours ago, Musashi said: This topic has been discussed several times I did do a search first and found that many discussions talk about using a "hack" (as the example you cited) or a UDF or whatever. But I was hoping for a more simple direct answer, which I got from Jos. Link to comment Share on other sites More sharing options...
Musashi Posted August 27, 2023 Share Posted August 27, 2023 5 minutes ago, TimRude said: But I was hoping for a more simple direct answer, which I got from Jos. The thread I linked contains a corresponding response from @Jos . https://www.autoitscript.com/forum/topic/204311-hack-that-tells-you-what-line-a-compiled-script-actually-crashed-on/?do=findComment&comment=1468033 "In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move." 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