src/eric7/DebugClients/Python/DebugClientBase.py

branch
eric7
changeset 10065
de4ae767b0e3
parent 10050
3750abc45d5e
child 10289
490388ca210c
equal deleted inserted replaced
10064:8c3207703dac 10065:de4ae767b0e3
1010 "filename": filename, 1010 "filename": filename,
1011 "exceptions": exceptions, 1011 "exceptions": exceptions,
1012 }, 1012 },
1013 ) 1013 )
1014 1014
1015 def sendDebuggerId(self, debuggerId): 1015 def sendDebuggerId(self):
1016 """ 1016 """
1017 Public method to send the debug client id. 1017 Public method to send the debug client id.
1018
1019 @param debuggerId id of this debug client instance (made up of
1020 hostname and process ID)
1021 @type str
1022 """ 1018 """
1023 # debugger ID is added automatically by sendJsonCommand 1019 # debugger ID is added automatically by sendJsonCommand
1024 self.sendJsonCommand("DebuggerId", {}) 1020 self.sendJsonCommand("DebuggerId", {})
1025 1021
1026 def __clientCapabilities(self): 1022 def __clientCapabilities(self):
1214 name = "main" 1210 name = "main"
1215 self.__debuggerId = "{0}/{1}/{2}".format( 1211 self.__debuggerId = "{0}/{1}/{2}".format(
1216 socket.gethostname(), os.getpid(), name 1212 socket.gethostname(), os.getpid(), name
1217 ) 1213 )
1218 1214
1219 self.sendDebuggerId(self.__debuggerId) 1215 self.sendDebuggerId()
1220 1216
1221 def __unhandled_exception(self, exctype, excval, exctb): 1217 def __unhandled_exception(self, exctype, excval, exctb):
1222 """ 1218 """
1223 Private method called to report an uncaught exception. 1219 Private method called to report an uncaught exception.
1224 1220
1765 self, 1761 self,
1766 filename=None, 1762 filename=None,
1767 host=None, 1763 host=None,
1768 port=None, 1764 port=None,
1769 enableTrace=True, 1765 enableTrace=True,
1770 exceptions=True, 1766 exceptions=True, # noqa: U100
1771 tracePython=False, 1767 tracePython=False,
1772 redirect=True, 1768 redirect=True,
1773 passive=True, 1769 passive=True,
1774 multiprocessSupport=False, 1770 multiprocessSupport=False, # noqa: U100
1775 ): 1771 ):
1776 """ 1772 """
1777 Public method used to start the remote debugger. 1773 Public method used to start the remote debugger.
1778 1774
1779 @param filename the program to be debugged 1775 @param filename the program to be debugged

eric ide

mercurial