1

Closed

debugging IronPython in pytools 1.5 does not correctly set scope in Locals, Autos and Immediate Window

description

With release 1.5.51026.0 when I try to debug an IronPython script I cannot access any of the scripts internal variables using any of the VS debug windows including the Locals, Autos or Watch window. Furthermore, neither the Immediate Window or the IronPython 2.7 Interactive display any in-scope variables. Resetting the Interactive window returns the error: -

Interactive window is not yet started.

This is even with a very simple script such as: -

x = 1
y = x + 1

file attachments

Closed Mar 18 at 9:04 PM by Ptools

comments

huguesv wrote Dec 5, 2012 at 8:45 PM

I am seeing this as well, when using the IronPython .NET launcher. Works fine when using the Python launcher.

Resetting the interactive window will give the message "Interactive window is not yet started." if no code was executed in it, that is the expected behavior.

In addition, the interactive window doesn't execute in the context of the debugged program, so you wouldn't expect to see any in-scope variables there.

The debug interactive window can do that though, and in this case, it has the same problem as the immediate window.

bsdz wrote Mar 18 at 9:55 PM

Is some insane project admin going on a giant ticket clearing spree? How is this a duplicate of 495? Perhaps a comment that describes how it is would be helpful.

Zooba wrote Mar 18 at 10:55 PM

We did a pass over all our open bugs to try and get clean with our next release. We don't really expect too many people outside of our team to be subscribed to them, so sorry if your mailbox overflowed.

This is not so much a duplicate as something that will be fixed when the other one is fixed. For now, using the IronPython Launcher will continue to treat your code as .NET code rather than Python code, and so you see .NET variables. Using the Python Launcher (with IronPython as the selected interpreter) will show the Python variables. This can be changed in Project Properties.

bsdz wrote Mar 19 at 10:24 AM

Makes more sense. Thank you.