Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Generics in stacktraces
shiranpuri
#1 Posted : Saturday, April 27, 2013 9:23:40 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 3/9/2013(UTC)
Posts: 7

Thanks: 1 times
Often times when looking at an exception that involves calls with generics I'd like to know what the actual runtime types were.
It shows most of the rest of the call and type information in the popup, but generics get the generic definition name instead of the generic type.

I realize that the normal .net stacktrace also shows Foo`1 or Foo`2 or whatever instead of the actual types used at runtime,
but the call stack window in visual studio does show the full actual types when debugging.

Is there a way for type parameter information to somehow also be shown in the stacktraces shown for exceptions in ncrunch?
Remco
#2 Posted : Sunday, April 28, 2013 12:00:25 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,135

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
This is an interesting idea, though it may be very difficult to implement. The stack traces that NCrunch works with all originate from the exception itself (i.e. after the explosion), and the only information provided here is in string form. So I guess the big question is whether there is any way to derive the generic type from the abbreviated name. I'll do some more looking into this to see if there are ways this is possible.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.025 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download