RE: [Boa Constr] Db>
Status: Beta
Brought to you by:
riaan
From: Riaan B. <ri...@tb...> - 2002-12-12 01:18:57
|
Hi Paolo, > > Hello boa-constructor-users, > > Maybe it's a stupid question... I'm missing something... > > How to change a local variable value from the shell while debugging > (aka Db> prompt)? > > In the standard debugger, pdb, casted with pdb.set_trace(), I use the > !, like !var1=1... with boa I've a Syntax Error... > > Db> debug=1 > > File "<string>", line 1 > debug=1 > ^ > SyntaxError: invalid syntax > > Db> !debug=1 > > File "<string>", line 1 > !debug=1 > ^ > SyntaxError: invalid syntax > > When I can I use some function (like setattr) or work in the __dict__, > but I wonder if where is some other easy way... I've done that too :) Basically no, as you might guess it's eval'ed on the DebuggerServer side so statements aren't allowed, only expressions. I'd like to improve this at at some stage. It's a todo. Cheers, Riaan. |