src/eric7/Debugger/DebugUI.py

branch
eric7
changeset 10988
729202700a5a
parent 10928
46651e194fbe
child 11006
a671918232f3
equal deleted inserted replaced
10987:ee81b245ae2c 10988:729202700a5a
1488 buttons = ( 1488 buttons = (
1489 EricMessageBox.No 1489 EricMessageBox.No
1490 | EricMessageBox.Yes 1490 | EricMessageBox.Yes
1491 | EricMessageBox.Ignore 1491 | EricMessageBox.Ignore
1492 ) 1492 )
1493 res = EricMessageBox.critical( 1493 filename = stackTrace[0][0]
1494 self.ui, 1494 res = (
1495 Program, 1495 EricMessageBox.critical(
1496 self.tr( 1496 self.ui,
1497 "<p>The debugged program raised the exception" 1497 Program,
1498 ' <b>{0}</b><br>"<b>{1}</b>"<br>' 1498 self.tr(
1499 "File: <b>{2}</b>, Line: <b>{3}</b></p>" 1499 "<p>The debugged program raised the exception"
1500 "<p>Break here?</p>" 1500 ' <b>{0}</b><br>"<b>{1}</b>"<br>'
1501 ).format( 1501 "File: <b>{2}</b>, Line: <b>{3}</b></p>"
1502 exceptionType, 1502 "<p>Break here?</p>"
1503 EricUtilities.html_encode(exceptionMessage), 1503 ).format(
1504 stackTrace[0][0], 1504 exceptionType,
1505 stackTrace[0][1], 1505 EricUtilities.html_encode(exceptionMessage),
1506 ), 1506 filename,
1507 buttons, 1507 stackTrace[0][1],
1508 EricMessageBox.No, 1508 ),
1509 buttons,
1510 EricMessageBox.No,
1511 )
1512 if Utilities.MimeTypes.isTextFile(filename)
1513 else EricMessageBox.critical(
1514 self.ui,
1515 Program,
1516 self.tr(
1517 "<p>The debugged program raised the exception"
1518 ' <b>{0}</b><br>"<b>{1}</b>"<br>'
1519 "File: <b>{2}</b>, Line: <b>{3}</b></p>"
1520 ).format(
1521 exceptionType,
1522 EricUtilities.html_encode(exceptionMessage),
1523 filename,
1524 stackTrace[0][1],
1525 ),
1526 )
1509 ) 1527 )
1510 else: 1528 else:
1511 res = EricMessageBox.critical( 1529 res = EricMessageBox.critical(
1512 self.ui, 1530 self.ui,
1513 Program, 1531 Program,

eric ide

mercurial