c# - Programmatically evaluating expressions / debugging -


I am writing a visual studio add-in, I'm not serious just to experiment.
I need to evaluate the piece of code when the debugger is running, and it is getting very difficult for me / searching for it in SO.

Suppose that hovering on Person1.Name will display it "JustAName" . I want my add-in code, when a command is executed, evaluate the string "Person1.Name" (which is in the Debugger reference) and the string "Justify" < / Code>.

Is this possible?

Use the method.


Comments