Interactive Python debugging in XSI: 2005-04-11 - By ozu's mailbot
Back Actually if wxPython was inside a custom display host, that would be even better...
Francois Lord wrote:
> Thanks Jerry, these Python insights are very useful. > Now if that debugger could be inside a custom display host, it would > really rock! :-) > > Jerry Gamache wrote: > >> 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. >> > --- > Unsubscribe? Mail Majordomo@(protected) with the following text in > body: > unsubscribe xsi
--- Unsubscribe? Mail Majordomo@(protected) with the following text in body: unsubscribe xsi
|
|