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 |