I believe your breakpoint is in top-level global code of the module. In that case, this is a known limitation.

 

VisualStudio will display local variables of functions defined in IronPython. However, if you are executing top-level global code, the Python global variables are implemented as CLR static variables or sometimeas as a dictionary object held in a CLR static variable. The Locals window in VisualStudio does not display CLR global variables. As a result, you will not see the Python global variables.

 

What is needed is a visualizer to display CLR global variables. VisualStudio does support such a plug-in architecture. However, such a plug-in has not yet been implemented. We do want to improve such support in the future, but we have not gotten to this yet.

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Moore
Sent: Wednesday, November 08, 2006 10:12 AM
To: users@lists.ironpython.com
Subject: [IronPython] embedded debugging

 

I have an app that embedds IP runtime. I can set break points in the IP code but the debugger does not show any variables. The only variable is $line. All I can do is step through the code.

 

I have set the debuggable option on the engine

 

It is using CompiledCode

_______________________________________________
users mailing list
users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to