DebugClients/Python2/eric6dbgstub.py

changeset 5161
f7b6ded9cc37
parent 5133
b7fe69c6cb1c
equal deleted inserted replaced
5160:d8908660fc65 5161:f7b6ded9cc37
31 @return flag indicating success (boolean) 31 @return flag indicating success (boolean)
32 @exception ValueError raised to indicate an invalid debugger kind 32 @exception ValueError raised to indicate an invalid debugger kind
33 was requested 33 was requested
34 """ 34 """
35 global debugger 35 global debugger
36 res = 1 36 res = True
37 try: 37 try:
38 if kind == "standard": 38 if kind == "standard":
39 import DebugClient 39 import DebugClient
40 debugger = DebugClient.DebugClient() 40 debugger = DebugClient.DebugClient()
41 elif kind == "threads": 41 elif kind == "threads":
43 debugger = DebugClientThreads.DebugClientThreads() 43 debugger = DebugClientThreads.DebugClientThreads()
44 else: 44 else:
45 raise ValueError 45 raise ValueError
46 except ImportError: 46 except ImportError:
47 debugger = None 47 debugger = None
48 res = 0 48 res = False
49 49
50 return res 50 return res
51 51
52 52
53 def runcall(func, *args): 53 def runcall(func, *args):

eric ide

mercurial