Debugger/ExceptionLogger.py

changeset 2988
f53c03574697
parent 2622
08cc2f31c983
child 3021
801289962f4e
child 3057
10516539f238
equal deleted inserted replaced
2987:c99695c0f13a 2988:f53c03574697
45 self.itemDoubleClicked.connect(self.__itemDoubleClicked) 45 self.itemDoubleClicked.connect(self.__itemDoubleClicked)
46 46
47 self.setWhatsThis(self.trUtf8( 47 self.setWhatsThis(self.trUtf8(
48 """<b>Exceptions Logger</b>""" 48 """<b>Exceptions Logger</b>"""
49 """<p>This windows shows a trace of all exceptions, that have""" 49 """<p>This windows shows a trace of all exceptions, that have"""
50 """ occured during the last debugging session. Initially only the""" 50 """ occured during the last debugging session. Initially only"""
51 """ exception type and exception message are shown. After""" 51 """ the exception type and exception message are shown. After"""
52 """ the expansion of this entry, the complete call stack as reported""" 52 """ the expansion of this entry, the complete call stack as"""
53 """ by the client is show with the most recent call first.</p>""" 53 """ reported by the client is show with the most recent call"""
54 """ first.</p>"""
54 )) 55 ))
55 56
56 self.menu = QMenu(self) 57 self.menu = QMenu(self)
57 self.menu.addAction(self.trUtf8("Show source"), self.__openSource) 58 self.menu.addAction(self.trUtf8("Show source"), self.__openSource)
58 self.menu.addAction(self.trUtf8("Clear"), self.clear) 59 self.menu.addAction(self.trUtf8("Clear"), self.clear)
110 excitm = QTreeWidgetItem(itm) 111 excitm = QTreeWidgetItem(itm)
111 excitm.setText(0, "{0}, {1:d}".format(entry[0], entry[1])) 112 excitm.setText(0, "{0}, {1:d}".format(entry[0], entry[1]))
112 113
113 def debuggingStarted(self): 114 def debuggingStarted(self):
114 """ 115 """
115 Public slot to clear the listview upon starting a new debugging session. 116 Public slot to clear the listview upon starting a new debugging
117 session.
116 """ 118 """
117 self.clear() 119 self.clear()
118 120
119 def __openSource(self): 121 def __openSource(self):
120 """ 122 """
134 136
135 def __configure(self): 137 def __configure(self):
136 """ 138 """
137 Private method to open the configuration dialog. 139 Private method to open the configuration dialog.
138 """ 140 """
139 e5App().getObject("UserInterface").showPreferences("debuggerGeneralPage") 141 e5App().getObject("UserInterface")\
142 .showPreferences("debuggerGeneralPage")

eric ide

mercurial