I need to inspect the value of a variable inside a class in asp.net IronPython in Visual Studio 2008. Visual 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?
views:
123answers:
1
+1
A:
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.
Dino Viehland
2009-12-03 00:46:51
Thank you Dino. Forgive me my ignorance, I see you are highly involved with IronPython, who are you exactly?
Pablo
2009-12-03 17:53:46
you're the editor of IronPython in action?
Pablo
2009-12-03 17:56:26
And core developer of IronPython?
Pablo
2009-12-03 18:09:54
Yes, I'm a core developer of IronPython and I've worked on the DLR in the past.
Dino Viehland
2009-12-03 18:52:43
Being cPython and .NET popular language/framework here, and having spanish around 330 million speakers in 21 countries, it would be cool to see more material of IronPython in spanish :)
Pablo
2009-12-03 20:33:37