Debugger/ExceptionLogger.py

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

eric ide

mercurial