> -----Original Message-----
> From: Bryan Stevenson [mailto:[EMAIL PROTECTED]
> Sent: Friday, October 28, 2005 2:36 PM
> To: CF-Talk
> Subject: debugging complaint
> 
> Hey All,
> 
> You know it just hit me that CF debugging could be so much more
> informative in certain situations...and I wonder if anyone can tell me why
> it isn't?? ;-)
> 
> Here's a great example to do with CFCs
> 
> Pass an argument of type numeric to a method (but the value passed is not
> numeric).  So we get the standard "argument XYZ passed to method ABC is
> not of type numeric".  OK...so at least we know we've passed something
> inappropriate...but what the heck is so hard about stating what was
> actually passed!!!??? ;-)

I think the simple answer is that it's harder than it appears.

What if the value is confidential - you'd really need an option to display
values or not (some people still dump errors to the page or to comments).
There are already issues like this with some error cases (SQL errors for
example) that people have complained about in the past (which is one reason
that the debugging settings have continually gotten more complex).

What if the value passed isn't a simple value?  Do you dump a potentially
huge amount of information to the screen?

What if the value is a simple value but is, say, several pages of text?  Do
you dump the whole thing?  Just some of it?  How much of it?

There's also the simple fact that the more complex you make error reporting
the more likely it is that the error reporting itself will encounter
errors... and then things just go straight to hell.  ;^)

I'm not saying that things can't be better... but I also can see how they
may be harder than they appear to be.

Jim Davis



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:222610
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to