DebugClients/Python/DebugClientBase.py

changeset 5616
adcffadf4962
parent 5595
1d4706f786d6
child 5651
982465f8389c
equal deleted inserted replaced
5615:2c9c2d67e4d8 5616:adcffadf4962
177 DebugClient classes. Do not instantiate it directly. 177 DebugClient classes. Do not instantiate it directly.
178 """ 178 """
179 clientCapabilities = DebugClientCapabilities.HasAll 179 clientCapabilities = DebugClientCapabilities.HasAll
180 180
181 # keep these in sync with VariablesViewer.VariableItem.Indicators 181 # keep these in sync with VariablesViewer.VariableItem.Indicators
182 Indicators = ("()", "[]", "{:}", "{}") # __IGNORE_WARNING__ 182 Indicators = ("()", "[]", "{:}", "{}") # __IGNORE_WARNING_M613__
183 183
184 def __init__(self): 184 def __init__(self):
185 """ 185 """
186 Constructor 186 Constructor
187 """ 187 """
2003 del args[0] 2003 del args[0]
2004 break 2004 break
2005 else: # unknown option 2005 else: # unknown option
2006 del args[0] 2006 del args[0]
2007 if not args: 2007 if not args:
2008 print("No program given. Aborting!") # __IGNORE_WARNING__ 2008 print("No program given. Aborting!")
2009 # __IGNORE_WARNING_M801__
2009 else: 2010 else:
2010 if not self.noencoding: 2011 if not self.noencoding:
2011 self.__coding = self.defaultCoding 2012 self.__coding = self.defaultCoding
2012 self.startProgInDebugger(args, wd, host, port, 2013 self.startProgInDebugger(args, wd, host, port,
2013 exceptions=exceptions, 2014 exceptions=exceptions,
2044 if not self.noencoding: 2045 if not self.noencoding:
2045 self.__coding = self.defaultCoding 2046 self.__coding = self.defaultCoding
2046 self.connectDebugger(port, remoteAddress, redirect) 2047 self.connectDebugger(port, remoteAddress, redirect)
2047 self.__interact() 2048 self.__interact()
2048 else: 2049 else:
2049 print("No network port given. Aborting...") # __IGNORE_WARNING__ 2050 print("No network port given. Aborting...")
2051 # __IGNORE_WARNING_M801__
2050 2052
2051 def fork(self): 2053 def fork(self):
2052 """ 2054 """
2053 Public method implementing a fork routine deciding which branch 2055 Public method implementing a fork routine deciding which branch
2054 to follow. 2056 to follow.

eric ide

mercurial