[Eric] Debugger crashes 2
detlev
detlev at die-offenbachs.de
Sat Feb 20 08:46:50 GMT 2010
Hi,
did you activate the multi-threaded debugger backend (Debugger->Python)?
Detlev
On Freitag, 19. Februar 2010, Manuel Soukup wrote:
> Hi
>
> When i try to debug my project the debugger crashes after the main calls
> gui.start() with:
>
> /home/manuel/Python/new/workspace/mySoko/Main.py has terminated with an
> exit status of 0.
>
> The Debugger window is closed and im back in the editor view.
>
> Other debugger like winpdb work.
>
> I traced it back to that command:
>
> gui.start() # starts the run fct and keeps the window open
>
> after that the debugger crashes.
>
> The code for reproducing:
>
> import pygame, time, threading, sys
> from pygame.locals import *
> class Screen:
> def __init__(self,size,name):
> pygame.init() # init pygame things like sound,video ....
> self.Surface = pygame.display.set_mode(size)
> self.Surface.fill((255,255,255))
> pygame.display.set_caption(name)
> self.resolution = size
> def clear(self):
> self.Surface.fill((255,255,255))
> class Main(threading.Thread):
> def __init__(self):
> threading.Thread.__init__(self)
> self.stopthread = threading.Event()
> self.Screen = Screen((800,600),"Tesz")
> def run(self): # runs with .start() main program not the fork
> while not self.stopthread.isSet():
> pygame.display.update()
> for event in pygame.event.get():
> if event.type == QUIT: # if X is pressed
> pygame.quit() # exit pygame
> sys.exit()
> pygame.display.update()
> def stop(self): # func to stop progammm e.g. for button
> self.stopthread.set()
> if __name__ == "__main__": # if this is the mainporgamm and no module
> gui = Main() # generate main obj
> gui.start() # starts the run fct and keeps the window open
>
> I think eric is a great IDE but whithout a working debugger useless.
>
> Please help
>
> Thanks
>
>
> _______________________________________________
> Eric mailing list
> Eric at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/eric
>
--
Detlev Offenbach
detlev at die-offenbachs.de
More information about the Eric
mailing list