JackDinn Posted March 29, 2009 Share Posted March 29, 2009 is there a way to get at least which line the script crashed in when a compiled script is run as an exe by other peeps, and maybe even the command that was being executed that caused the error. im sure iv seen error catching around but only seems to be for uncompleted scripts. %99 of peeps are happy with my program but one has decided to move all his User data and now hes getting Error at line 1 and that dont mean much to me, so i need to build in a error log or even just a message box telling me what id like to know after a crash. cheers all. Thx all,Jack Dinn. JD's Auto Internet Speed Tester JD's Clip Catch (With Screen Shot Helper) Projects :- AutoIt - My projects My software never has bugs. It just develops random features. :-D Link to comment Share on other sites More sharing options...
CodyBarrett Posted March 29, 2009 Share Posted March 29, 2009 are you sure its not a error that youve mistaken? or maybe its his OS [size="1"][font="Tahoma"][COMPLETED]-----[FAILED]-----[ONGOING]VolumeControl|Binary Converter|CPU Usage| Mouse Wrap |WinHide|Word Scrammbler|LOCKER|SCREEN FREEZE|Decisions Decisions|Version UDF|Recast Desktop Mask|TCP Multiclient EXAMPLE|BTCP|LANCR|UDP serverless|AIOCR|OECR|Recast Messenger|AU3C|Tik-Tak-Toe|Snakes & Ladders|BattleShips|TRON|SNAKE_____________________[u]I love the Helpfile it is my best friend.[/u][/font][/size] Link to comment Share on other sites More sharing options...
JackDinn Posted March 29, 2009 Author Share Posted March 29, 2009 i duno what that means , so forget about the person i mentioned (he was just an example and the reason i wanted to know the answer to my question) and concentrate on the answer to "is there a way to get at least which line the script crashed in when a compiled script is run as an exe" Thx all,Jack Dinn. JD's Auto Internet Speed Tester JD's Clip Catch (With Screen Shot Helper) Projects :- AutoIt - My projects My software never has bugs. It just develops random features. :-D Link to comment Share on other sites More sharing options...
Yashied Posted March 29, 2009 Share Posted March 29, 2009 is there a way to get at least which line the script crashed in when a compiled script is run as an exe by other peeps, and maybe even the command that was being executed that caused the error. im sure iv seen error catching around but only seems to be for uncompleted scripts.%99 of peeps are happy with my program but one has decided to move all his User data and now hes getting Error at line 1 and that dont mean much to me, so i need to build in a error log or even just a message box telling me what id like to know after a crash.cheers all.Try to run your script in SciTE editor, if the error is not related to OS, it will show what this error and what line. Or you can use the MsgBox() to catch a bug point. My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More... Link to comment Share on other sites More sharing options...
JackDinn Posted March 29, 2009 Author Share Posted March 29, 2009 i mean iv got a lot of peeps with my program they dont have autoit and im not guna ask them to install it either , but i wanted to know it when it crashes on another persons machine if i can implement some kind of error message that they can tell me what it said and then i can try to figure out what is happening in there case. the script is fine for me and for %99 of the others that use it. so it`s not an error on my part but i would like to know why this chaps is crashing so i just wondered how i could get some more info from peeps using it if it was to crash ie maybe hes moved a critical file or something but i cant tell without some kind off error message that pops up giving him more info that he can then pass on to me. something like :- If @crash then _Crash() Func _crash() messageBox("error",$lineCrashedAt & $CommandCausingCrash & $variablesValuesInvolved etc etc) EndFunc Kinda thing. Thx all,Jack Dinn. JD's Auto Internet Speed Tester JD's Clip Catch (With Screen Shot Helper) Projects :- AutoIt - My projects My software never has bugs. It just develops random features. :-D Link to comment Share on other sites More sharing options...
Developers Jos Posted March 29, 2009 Developers Share Posted March 29, 2009 this isn't available. I usually build in some sort of logging to a file and make that optional either via commandline or INI file. 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...
JackDinn Posted March 29, 2009 Author Share Posted March 29, 2009 ahh, ic well that sorts that then, thx i'll use the _debug or have a look at the _eventlog if not just use a straight text file like you say, thx Thx all,Jack Dinn. JD's Auto Internet Speed Tester JD's Clip Catch (With Screen Shot Helper) Projects :- AutoIt - My projects My software never has bugs. It just develops random features. :-D Link to comment Share on other sites More sharing options...
Developers Jos Posted March 29, 2009 Developers Share Posted March 29, 2009 (edited) only other option I just thought of is doing it this way: 1. created a script called testscript.au3: If StringInStr($cmdlineraw, "/debug") Then If StringInStr($cmdlineraw, "/runmyscript") Then MsgBox(0,"secondstep","secondstep") Else MsgBox(0,"firststep","firststep") FileInstall("testscript.au3","testscript.au3",1) run(@ScriptFullPath & ' /AutoIt3ExecuteScript "' & @ScriptDir & '\testscript.au3" /runmyscript /debug') Exit EndIf EndIf Dim $a[4] Msgbox(0,'error',$a[4]) When started normally it will give a line -1 error. when started as "testscript.exe /debug" it will give an error on line 12. This will ofcource copy the source into de script.exe directory, but you could delete that again at the end of the script. Jos Edited March 29, 2009 by 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. Link to comment Share on other sites More sharing options...
Yashied Posted March 29, 2009 Share Posted March 29, 2009 Nice example, Jos. My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More... Link to comment Share on other sites More sharing options...
JackDinn Posted March 29, 2009 Author Share Posted March 29, 2009 pweew , hold up , im still trying to get my head around it, lol yes very neat looks like you have been at this for some time. Thx all,Jack Dinn. JD's Auto Internet Speed Tester JD's Clip Catch (With Screen Shot Helper) Projects :- AutoIt - My projects My software never has bugs. It just develops random features. :-D Link to comment Share on other sites More sharing options...
Developers Jos Posted March 29, 2009 Developers Share Posted March 29, 2009 (edited) pweew , hold up , im still trying to get my head around it, lolyes very neat looks like you have been at this for some time.All it does is "ïnclude" an extra copy of your source and run that, but the thing to remember is that when you need #include's that they also need to be fileinstalled in the same way or else it will not work.So this workaround is just to show possibilities but its far from ideal!Jos Edited March 29, 2009 by 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. Link to comment Share on other sites More sharing options...
JackDinn Posted March 29, 2009 Author Share Posted March 29, 2009 (edited) im a bit confused about the AutoIt3ExecuteScript ? does it mean that you can execute a .au3 script without having to have autoit installed ? so your sending a copy of the script both compiled and in .au3 format and when and when you need you are basically running the .au3 and gathering the error info from that. or am i completely wrong EDIT: yea got ya sorry posted just half a sec after your response email came in, Edited March 29, 2009 by JackDinn Thx all,Jack Dinn. JD's Auto Internet Speed Tester JD's Clip Catch (With Screen Shot Helper) Projects :- AutoIt - My projects My software never has bugs. It just develops random features. :-D 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