开发者

Get list of local objects/variables during runtime

I'm trying to create a simple logger to check what's happening on the client-side. How can I get th开发者_如何学编程e list of locals (as displayed on visual studio while debugging)?

kind of like when a breakpoint is hit, the current existing instances of objects/variables are shown on the Locals tab or should I just get the variable's current value whenever I write on the log?


Interesting thing...

I usually log all method parameters names and values with a combination of Reflection and runtime data, never thought about also catching local variables values...

here some info:

Accessing Local Variable Information

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜