Variable inspection in Visual Studio 2008 in asp.net IronPython inside a class
I need to inspect the value of a variable inside a class in asp.net IronPython in Visual Studio 2008. Vis开发者_Go百科ual Studio 2008 inspector doesnt work for IronPython (if the inspector works in VS 2008 for asp.net IronPython and it isnt working for me plz tell me) and you can't use Response.write - Response.end inside a class. What can I do to know the variable's value?
You'll need to dig into the object's dictionary. This should be the dict field on the object. If the variable is in the class instead you'll need to dig into the class and then into the classes dictionary. Unfortunately it's rather painful to do right now.
This is already improved for a future release of IronPython - checked into the current source tree (which will likely become 2.6.1) there's support via debugger proxies which make this much better. So if you're using 2.6 and are willing to build from source you could grab the current sources and give that a go.
精彩评论