开发者

Get list of local objects/variables during runtime

开发者 https://www.devze.com 2023-03-17 07:22 出处:网络
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)?

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

精彩评论

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