Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visualizing the code involved in an action?

Tags:

.net

debugging

I am trying to figure out how a library works and I would like to be able to visualize which methods and lines of code are executed in response to user input (e.g. a keypress or mouse click). Is there a way to do this in .NET?

like image 585
user22819 Avatar asked Aug 04 '26 17:08

user22819


1 Answers

There's a wonderful, free tool from Microsoft called Pex. Once installed, you can right-click a method and select "Run Pex Exploration". It will analyze the code and show you inputs to touch every part of the method.

For more information, see Pex CodeDigger. Here's a screenshot of it in action:

alt text

like image 159
Judah Gabriel Himango Avatar answered Aug 07 '26 07:08

Judah Gabriel Himango



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!