Interactive Python debugging in XSI: 2005-04-09 - By kim aldis
Back You just never stop, do you ;-)
__ __
From: owner-xsi@(protected) [mailto:owner-xsi@(protected)] On Behalf Of Jerry Gamache Sent: 08 April 2005 21:57 To: xsi@(protected) Subject: Interactive Python debugging in XSI:
Try this in XSI:
for i in range (0,12): if i == 3: import pywin.debugger pywin.debugger.brk() Application.LogMessage(i) After outputting a few values, a debugger should pop-up. It has all the traditionnal debugger windows:
Interactive shell: In the shell, try changing the value of "i" before hitting F10 to step and see your new value being LogMessaged.
You can also control and experiment with XSI from the shell, just try:
[Dbg]>>> oSphere = Application.CreatePrim("Sphere","MeshSurface") [Dbg]>>> oSphere.radius = 2 [Dbg]>>>
Variable browser: you can explore all local and global variables.
Watch window: enter any expression and see it update as you step.
Enjoy! Jerry.
|
|