1511 Program, |
1513 Program, |
1512 self.tr( |
1514 self.tr( |
1513 "<p>The debugged program raised the exception" |
1515 "<p>The debugged program raised the exception" |
1514 ' <b>{0}</b><br>"<b>{1}</b>"</p>' |
1516 ' <b>{0}</b><br>"<b>{1}</b>"</p>' |
1515 ).format( |
1517 ).format( |
1516 exceptionType, Utilities.html_encode(exceptionMessage) |
1518 exceptionType, |
|
1519 EricUtilities.html_encode(exceptionMessage), |
1517 ), |
1520 ), |
1518 ) |
1521 ) |
1519 if res == EricMessageBox.Yes: |
1522 if res == EricMessageBox.Yes: |
1520 self.debugServer.setDebugging(True) |
1523 self.debugServer.setDebugging(True) |
1521 self.exceptionInterrupt.emit() |
1524 self.exceptionInterrupt.emit() |
1781 if duplicate: |
1784 if duplicate: |
1782 if not special: |
1785 if not special: |
1783 msg = self.tr( |
1786 msg = self.tr( |
1784 """<p>A watch expression '<b>{0}</b>'""" |
1787 """<p>A watch expression '<b>{0}</b>'""" |
1785 """ already exists.</p>""" |
1788 """ already exists.</p>""" |
1786 ).format(Utilities.html_encode(cond)) |
1789 ).format(EricUtilities.html_encode(cond)) |
1787 else: |
1790 else: |
1788 msg = self.tr( |
1791 msg = self.tr( |
1789 """<p>A watch expression '<b>{0}</b>'""" |
1792 """<p>A watch expression '<b>{0}</b>'""" |
1790 """ for the variable <b>{1}</b> already""" |
1793 """ for the variable <b>{1}</b> already""" |
1791 """ exists.</p>""" |
1794 """ exists.</p>""" |
1792 ).format(special, Utilities.html_encode(cond)) |
1795 ).format(special, EricUtilities.html_encode(cond)) |
1793 EricMessageBox.warning( |
1796 EricMessageBox.warning( |
1794 self.ui, self.tr("Watch expression already exists"), msg |
1797 self.ui, self.tr("Watch expression already exists"), msg |
1795 ) |
1798 ) |
1796 model.deleteWatchPointByIndex(index) |
1799 model.deleteWatchPointByIndex(index) |
1797 else: |
1800 else: |