Jump to content

Do exe error line numbers correspond to line numbers in scriptname_stripped.au3?


Go to solution Solved by Jos,

Recommended Posts

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

  • Developers
  • Solution

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. 

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

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. : 

 

Musashi-C64.png

"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

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

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

 

Musashi-C64.png

"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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...