Getting debugger context in F# interactive

2020-04-11 18:06发布

Is it possible to somehow get the debugger context in F# interactive? For instance, if I hit a breakpoint in C# project then I would like to work with local variables in F# interactive, the same way I can work with them in immediate window. Is there any way to do so? Or do I need to create a debugger visualizer for that?

2条回答
兄弟一词,经得起流年.
2楼-- · 2020-04-11 18:36

Neither. You need to create an Expression Evaluator for it. Not sure if C# can be extended, but there is a sample in the VS SDK (the 2008 one at least).

查看更多
贼婆χ
3楼-- · 2020-04-11 18:51

I've make very similar tool for Python, so I'm just using Python shell to evaluate some expressions like in Immediate Window. For this I've created a very simple VS Add-In and Python helper script. You can find sources on github - https://github.com/dp0h/VsImmediate

查看更多
登录 后发表回答