Debugging all events in Visual Studio 2010 without setting break points

前端 未结 9 671
情书的邮戳
情书的邮戳 2020-12-14 01:13

I am trying to debug a windows form application which has a large number of events: button presses, timers, etc..

Is there a way to catch every line of code being ex

9条回答
  •  误落风尘
    2020-12-14 02:06

    You could also try a code coverage tool.

    For example, if you have Resharper and dotCover, you can run your application (via the dotCover->Cover Application... menu item) and when the application finishes, dotCover will show you which lines of code were run in the VS IDE by highlighting them in green. Lines of code which where not run are coloured in red.

    I don't know if there are other tools which do this, but it's an option.

提交回复
热议问题