Problem of debugging event handler functions

0 views
Skip to first unread message

mass...@gmail.com

unread,
Oct 20, 2009, 8:59:13 AM10/20/09
to guess-discuss
Hello,
I have written a script to respond to mouse clicks:

class test(java.lang.Object):
def init(self):
graphevents.clickNode= self.mouseClick

def mouseClick(self,_node):
self.myFunction()

def myFunction(self)
print "ok until here"
# making an error:
pprint "ex. of a bad command: pprint instead of print"
# other lines...

The problem is that Guess doesn't show any error message for the 3rd
line of myFunction. It just stops working and doesn't execute the
lines after.
So it's impossible to debug my functions.

Any idea?
Thanks,
Massoud
Reply all
Reply to author
Forward
0 new messages