在F#交互中获取调试器上下文 [英] Getting debugger context in F# interactive

查看:156
本文介绍了在F#交互中获取调试器上下文的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有可能以F#交互方式获取调试器上下文吗?例如,如果我在C#项目中打破了一个断点,那么我想在F#交互中使用本地变量,就像在即时窗口中一样可以使用它们。有什么办法吗?还是需要创建一个调试器可视化程序?

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?

推荐答案

您需要为其创建一个表达式计算器。不知道C#是否可以扩展,但VS SDK中有一个示例(至少是2008年的一个)。

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).

这篇关于在F#交互中获取调试器上下文的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆