1

I'm currently trying to find an error by reading code, since it is not reproducable at our end. Nowadays it is easy to find definitions of members, methods, functions and all usages via Resharper, but in this instance I would like to have a function like: "From this line, give me all locations where an exception generated here could be caught"

Does such a function exist in Resharper, VS or any other place?

Joel
  • 203
  • 2
  • 13
  • If exception is not handled in the method itself, then simply search for all references of this method. Won't work in all cases (e.g. for wpf xaml references, you have to use standard text search for method name in project files instead ). – Sinatr Aug 13 '15 at 09:26
  • That is my go to solution if I do not find a tool, but it would be much quicker and less frustrating to just be able to instead of references get the possible catch-block associated with any exception thrown at a certain location. – Joel Aug 13 '15 at 11:08

1 Answers1

1

This thread appears relevant: Is there a free alternative to Exception hunter?

Specifically, you may find Microsoft Code Digger useful.

Community
  • 1
  • 1
SpruceMoose
  • 9,737
  • 4
  • 39
  • 53
  • Sounds like an interesting tool indeed! I installed it, but could not get it to generate any output. The input/output is empty, and I cannot really figure out why. – Joel Aug 13 '15 at 11:10
  • Yeah, I tried it myself and it wasn't that fruitful, even when disabling the portable class library restriction. I think Sinatr suggestion may be the best alternative. – SpruceMoose Aug 14 '15 at 08:29