eric6/Debugger/DebugServer.py

changeset 8243
cc717c2ae956
parent 8240
93b8a353c4bf
child 8273
698ae46f40a4
child 8349
b43cf23955aa
equal deleted inserted replaced
8242:aa713ac50c0d 8243:cc717c2ae956
1485 Public method to ask the client for the latest traceback disassembly. 1485 Public method to ask the client for the latest traceback disassembly.
1486 1486
1487 @param debuggerId ID of the debugger backend 1487 @param debuggerId ID of the debugger backend
1488 @type str 1488 @type str
1489 """ 1489 """
1490 try: 1490 with contextlib.suppress(AttributeError):
1491 self.debuggerInterface.remoteClientDisassembly(debuggerId) 1491 self.debuggerInterface.remoteClientDisassembly(debuggerId)
1492 except AttributeError:
1493 # remote client doesn't support that
1494 pass
1495 1492
1496 def remoteClientSetFilter(self, debuggerId, scope, filterStr): 1493 def remoteClientSetFilter(self, debuggerId, scope, filterStr):
1497 """ 1494 """
1498 Public method to set a variables filter list. 1495 Public method to set a variables filter list.
1499 1496
1994 @param clientType type of the debug client 1991 @param clientType type of the debug client
1995 @type str 1992 @type str
1996 @param venvName name of the virtual environment 1993 @param venvName name of the virtual environment
1997 @type str 1994 @type str
1998 """ 1995 """
1999 try: 1996 with contextlib.suppress(KeyError):
2000 self.__debuggerInterfaceRegistry[clientType][0] = capabilities 1997 self.__debuggerInterfaceRegistry[clientType][0] = capabilities
2001 self.clientCapabilities.emit(capabilities, clientType, venvName) 1998 self.clientCapabilities.emit(capabilities, clientType, venvName)
2002 except KeyError:
2003 # ignore silently
2004 pass
2005 1999
2006 def signalClientCompletionList(self, completionList, text, debuggerId): 2000 def signalClientCompletionList(self, completionList, text, debuggerId):
2007 """ 2001 """
2008 Public method to process the client auto completion info. 2002 Public method to process the client auto completion info.
2009 2003

eric ide

mercurial