Thanks, I guess i have a problem grasping getting varibles based on where the error occured.
so the view -> controller -> cfc that runs query in the model folder. so there places if the cfc fails i want to know what variables were pasted into it from the controller. if the controller failed i want to know what variables were passed to it from the view. I see where the form scope might show me when an error will occur from view to controller. would arguments scope show me the arguments in a cfc if that fails? On Thursday, September 12, 2013 3:23:44 PM UTC-4, Dan Wilson - [email protected] wrote: > > you could use event.getAll() > > But a fair warning, it will get everything inside ModelGlue. Which could > be quite a bit of stuff. > > I usually dump out the CGI, Form, URL, Session > > Douglas Trojanwoski <javascript:> > Thursday, September 12, 2013 3:05 PM > Currently I have Error Handling like below but i was wondering how can i > add variables/arguments form post to the below email. So if and error > happens on a controller or cfc it would dump out all the agruments that > were inputed. Same with something like a page so i can figure out and > replicate what happened before i used <cfdump var="#arguments#"> or <cfdump > var="#attributes#"> (old fusebox frame work) is there something i can set > to get it to dump out variables? > > <cfmail from="[email protected]" <javascript:> subject="Error" to= > "[email protected]" <javascript:> > type="text/html"> > > <p> > Error For User: > TEST > </p> > <p> > Application: TEst > </p> > <table> > <tr> > <td valign="top"> > <b> > Message > </b> > </td> > <td valign="top"> > #exception.message# > </td> > </tr> > <tr> > <td valign="top"> > <b> > Detail > </b> > </td> > <td valign="top"> > #exception.detail# > </td> > </tr> > <tr> > <td valign="top"> > <b> > Extended Info > </b> > </td> > <td valign="top"> > #exception.ExtendedInfo# > </td> > </tr> > <tr> > <td valign="top"> > <b> > Tag Context > </b> > </td> > <td valign="top"> > <cfset tagCtxArr = exception.TagContext/> > <cfloop index="i" from="1" to="#ArrayLen(tagCtxArr)#"> > <cfset tagCtx = tagCtxArr[i]/> > #tagCtx['template']# > ( > #tagCtx['line']# > ) > <br> > </cfloop> > </td> > </tr> > </table> > > </cfmail> > -- > -- > Model-Glue Sites: > Home Page: http://www.model-glue.com > Documentation: http://docs.model-glue.com > Bug Tracker: http://bugs.model-glue.com > Blog: http://www.model-glue.com/blog > > You received this message because you are subscribed to the Google > Groups "model-glue" group. > To post to this group, send email to [email protected]<javascript:> > To unsubscribe from this group, send email to > [email protected] <javascript:> > For more options, visit this group at > http://groups.google.com/group/model-glue?hl=en > --- > You received this message because you are subscribed to the Google Groups > "model-glue" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] <javascript:>. > For more options, visit https://groups.google.com/groups/opt_out. > > -- -- Model-Glue Sites: Home Page: http://www.model-glue.com Documentation: http://docs.model-glue.com Bug Tracker: http://bugs.model-glue.com Blog: http://www.model-glue.com/blog You received this message because you are subscribed to the Google Groups "model-glue" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/model-glue?hl=en --- You received this message because you are subscribed to the Google Groups "model-glue" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
