jojoac Posted October 12, 2009 Posted October 12, 2009 Hi, I'm searching for a way to debug a compiled AutoIt EXE file. The program is running fine in the editor window. But as a compiled EXE I get a Variable must be declared error. I have set the the VariableMustbeDeclared option. And I get no error or warning during the build. I remember that in older version of AutoIt the line numbers would be displayed. Is there a way to set this during the build? Before someone ask. I can't send the the source code, first it is 800 lines than it contains data I can't share due to a NDA agreement. JoJo
Inverted Posted October 12, 2009 Posted October 12, 2009 (edited) Maybe you should declare that poor variable. Anyway, search the forum, there is an autoit debugger, though I've never needed it, trial and error always works. Wait, you're talking about a compiled exe ? I don't think it's possible, besides you know ... normal debugging, which will get you nowhere in this case. Edited October 12, 2009 by Inverted
jojoac Posted October 12, 2009 Author Posted October 12, 2009 On 10/12/2009 at 1:03 PM, 'Inverted said: Maybe you should declare that poor variable. Anyway, search the forum, there is an autoit debugger, though I've never needed it, trial and error always works.Wait, you're talking about a compiled exe ? I don't think it's possible, besides you know ... normal debugging, which will get you nowhere in this case.Thx Inverted,HaHa I'm sure I have all variable declared. It is not so easy that I have missed one. As I told direct from the editor it works fine. But as EXE I get direct the error. :-(
jvanegmond Posted October 12, 2009 Posted October 12, 2009 I have tried to reproduce your issue. But I have been unsuccesful. Can you maybe write a reproduction script and tell us your AutoIt version and possibly OS? github.com/jvanegmond
Zedna Posted October 12, 2009 Posted October 12, 2009 (edited) Don't you run your EXE on Win9x platform? I had similar problems with _ReduceMemory() on Win9x. --> psapi.dll with EmptyWorkingSet What Autoit version do you use? For EXE debugging use writing into your own LOG file (instead of ConsoleWrite). Do this at the most important/suspicious parts of your script. After run/error message look into LOG file to see what's going on. Edited October 12, 2009 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search
jojoac Posted October 12, 2009 Author Posted October 12, 2009 Thank You all for help, meanwhile I have found the issue. I have a DLL that is needed in a UDF, but I didn't have used the fileinstall in the UDF. I have used the main program. After I used the fileinstall in the UDF all is workiing. JoJo
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