Thanks, Peter,
I'm planning on implementing code that will email me notifications, with some 
error source info. Will this kind of error information be available in my app?

My apps get pretty complicated and I want to know when users encounter bugs in 
my software. I know there is a flag that can be set in standalones, to get 
error reports emailed to me, but many of the computers that students use don't 
have email set up, so I need to send it from my server.

Best,
Bill

William Prothero
http://es.earthednet.org

> On Mar 4, 2016, at 7:00 AM, "Peter M. Brigham" <pmb...@gmail.com> wrote:
> 
>> On Mar 1, 2016, at 8:07 PM, William Prothero wrote:
>> 
>> 89,2654,1
>> 
>> 69,2654,1,graphic id 74731 of group id 69783 of card id 1002 of stack 
>> "/Users/prothero/Oceanography Projects/LiveCode-RunRev Projects/PT_Explorer 
>> Projects/EarthExplorer_CurrentWkg/appStacks/datastacks/Map Display.livecode"
>> 
>> 676,2654,1
>> 
>> 241,2654,1,revIDEControlProperties
>> 
>> 353,0,0,stack "/Applications/LiveCode Indy 8.0 (dp 
>> 15).app/Contents/Tools/Toolset/libraries/revidelibrary.8.livecodescript"
>> 
>> 219,1788,8,revIDEControlProperties
>> 
>> 465,1788,8
>> 
>> 241,1788,1,addControlToProjectBrowser
>> 
>> 353,0,0,stack "/Applications/LiveCode Indy 8.0 (dp 
>> 15).app/Contents/Tools/Toolset/palettes/project 
>> browser/revprojectbrowserbehavior.livecodescript"
>> 
>> 573,118,1,addControlToProjectBrowser
>> 
>> 253,118,1
>> 
>> 253,118,1
>> 
>> 241,113,1,ideNewControl
>> 
>> 353,0,0,stack "/Applications/LiveCode Indy 8.0 (dp 
>> 15).app/Contents/Tools/Toolset/palettes/project 
>> browser/revprojectbrowserbehavior.livecodescript"
>> 
>> 675,1733,1,ideNewControl
> 
> Here is a (slightly) less obscure translation:
> 
> • line 2654, char 1: error #69, Chunk: error in object expression — hint: 
> graphic id 74731 of group id 69783 of card id 1002 of stack 
> "/Users/prothero/Oceanography Projects/LiveCode-RunRev Projects/PT_Explorer 
> Projects/EarthExplorer_CurrentWkg/appStacks/datastacks/Map Display.livecode"
> 
> • line 2654, char 1: error #241, Handler: error in statement — hint: 
> revIDEControlProperties
> 
> • line 0, char 0: error #353, Object Name: — hint: stack 
> "/Applications/LiveCode Indy 8.0 (dp 
> 15).app/Contents/Tools/Toolset/libraries/revidelibrary.8.livecodescript"
> 
> • line 1788, char 8: error #219, Function: error in function handler — hint: 
> revIDEControlProperties
> 
> • line 1788, char 1: error #241, Handler: error in statement — hint: 
> addControlToProjectBrowser
> 
> • line 0, char 0: error #353, Object Name: — hint: stack 
> "/Applications/LiveCode Indy 8.0 (dp 
> 15).app/Contents/Tools/Toolset/palettes/project 
> browser/revprojectbrowserbehavior.livecodescript"
> 
> • line 118, char 1: error #573, Handler: can't find handler — hint: 
> addControlToProjectBrowser
> 
> • line 118, char 1: error #253, if-then: error in statement
> 
> • line 113, char 1: error #241, Handler: error in statement — hint: 
> ideNewControl
> 
> • line 0, char 0: error #353, Object Name: — hint: stack 
> "/Applications/LiveCode Indy 8.0 (dp 
> 15).app/Contents/Tools/Toolset/palettes/project 
> browser/revprojectbrowserbehavior.livecodescript"
> 
> • line 1733, char 1: error #675, dispatch: bad command — hint: ideNewControl
> 
> If you're interested, here's a handler that explicates error messages a 
> little bit:
> 
> function expandError pErr
>   -- expands LC runtime error numbers, with explanatory text
>   --    "explanatory' is a relative term….
>   -- probably based on a handler from someone on the use-LC list, not sure who
>   -- requires sr()
> 
>   put the name of the target into tName
>   repeat for each line e in pErr
>      put item 1 of e into errNbr
>      put item 2 of e into tLineNbr
>      put item 3 of e into tCharNbr
>      put item 4 to -1 of e into tHint
>      put "•" && tName & ": line" && tLineNbr & "," && "char" && tCharNbr & ": 
> " into tErrMsg
>      put "error #" & errNbr & ", " after tErrMsg
>      put sr(line errNbr of the cErrorsList of card 1 of stack 
> "revErrorDisplay") \
>            after tErrMsg
>      if tHint <> empty then
>         put " — hint:" && tHint after tErrMsg
>      end if
>      put tErrMsg & cr after errorlist
>   end repeat
>   return sr(errorlist)
> end expandError
> 
> function sr pStr
>   -- sr = "strip returns" -- actually, strips all white space fore and aft
>   return word 1 to -1 of pStr
> end sr
> 
> -- Peter
> 
> Peter M. Brigham
> pmb...@gmail.com
> http://home.comcast.net/~pmbrig
> 
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to