How to view variable values when an exception was thrown

Code profiling for .NET Developers

Moderators: Luke Jefferson, StephenC, Alex.Davies, AndrewH, melvyn.harbour, Laura Morley

How to view variable values when an exception was thrown

Postby DanAvni » Tue Jun 29, 2010 7:44 am

i have a method call that threw an exception on one of many calls to it.
the method accepts a string and looks for it in a collection and then passes the object associated with that string to more internal processing.
the exception i get is that the string is not found.
although the method is in a DLL to which i do not have the source code, i could easily find the problem if i could see the problem if there was a way to view what is the string i am sending sometimes that causes the exception.

can this be done using ANTS profiler or any other tool?
Dan Avni
DanAvni
 
Posts: 48
Joined: Wed Jun 15, 2005 12:55 pm

Postby nick.maidment » Tue Jun 29, 2010 3:20 pm

You may want to look into the exception reporting features in smartassembly: http://www.red-gate.com/products/smarta ... atures.htm
nick.maidment
 
Posts: 74
Joined: Fri Jan 29, 2010 1:55 pm


Return to ANTS Performance Profiler 6

Who is online

Users browsing this forum: No registered users and 0 guests