I'd like to develop an extension for Visual Studio that runs a small snippet of code during runtime once a breakpoint's been hit.
To add some clarity, I pretty much want to call some code just as I would by manually writing it in the immediate window and render the results nicely (preferably a tree view).
I was reluctant to post this question since it seems pretty broad at first glance, but I'm fairly certain there aren't many different ways to achieve this.
I did originally look into Roslyn, but I believe that's for compile-time only if I'm not mistaken?
I have the code to do this already, and it runs perfectly in the immediate window, but I want to box it up as a feature since it's a bit cumbersome to manually enter it, and navigating it isn't easy either. what I need is somewhere between a 'watch' and an 'immediate' feature.
Question
Which platform/technology allows me to extend Visual Studio in a way I can run snippets of code 'ad hoc' during runtime and display the results nicely?