1364 if scope == 1: |
1364 if scope == 1: |
1365 self.debugViewer.showVariable(variables, True) |
1365 self.debugViewer.showVariable(variables, True) |
1366 elif scope == 0: |
1366 elif scope == 0: |
1367 self.debugViewer.showVariable(variables, False) |
1367 self.debugViewer.showVariable(variables, False) |
1368 |
1368 |
1369 def __clientBreakConditionError(self, filename, lineno): |
1369 def __clientBreakConditionError(self, filename, lineno, debuggerId): |
1370 """ |
1370 """ |
1371 Private method to handle a condition error of a breakpoint. |
1371 Private method to handle a condition error of a breakpoint. |
1372 |
1372 |
1373 @param filename filename of the breakpoint (string) |
1373 @param filename filename of the breakpoint |
1374 @param lineno linenumber of the breakpoint (integer) |
1374 @type str |
|
1375 @param lineno line umber of the breakpoint |
|
1376 @type int |
|
1377 @param debuggerId ID of the debugger backend |
|
1378 @type str |
1375 """ |
1379 """ |
1376 E5MessageBox.critical( |
1380 E5MessageBox.critical( |
1377 self.ui, |
1381 self.ui, |
1378 self.tr("Breakpoint Condition Error"), |
1382 self.tr("Breakpoint Condition Error"), |
1379 self.tr( |
1383 self.tr( |
1399 if dlg.exec_() == QDialog.Accepted: |
1403 if dlg.exec_() == QDialog.Accepted: |
1400 cond, temp, enabled, count = dlg.getData() |
1404 cond, temp, enabled, count = dlg.getData() |
1401 model.setBreakPointByIndex(index, fn, line, |
1405 model.setBreakPointByIndex(index, fn, line, |
1402 (cond, temp, enabled, count)) |
1406 (cond, temp, enabled, count)) |
1403 |
1407 |
1404 def __clientWatchConditionError(self, cond): |
1408 def __clientWatchConditionError(self, cond, debuggerId): |
1405 """ |
1409 """ |
1406 Private method to handle a expression error of a watch expression. |
1410 Private method to handle a expression error of a watch expression. |
1407 |
1411 |
1408 Note: This can only happen for normal watch expressions |
1412 Note: This can only happen for normal watch expressions |
1409 |
1413 |
1410 @param cond expression of the watch expression (string) |
1414 @param cond expression of the watch expression |
|
1415 @type str |
|
1416 @param debuggerId ID of the debugger backend |
|
1417 @type str |
1411 """ |
1418 """ |
1412 E5MessageBox.critical( |
1419 E5MessageBox.critical( |
1413 self.ui, |
1420 self.ui, |
1414 self.tr("Watch Expression Error"), |
1421 self.tr("Watch Expression Error"), |
1415 self.tr("""<p>The watch expression <b>{0}</b>""" |
1422 self.tr("""<p>The watch expression <b>{0}</b>""" |
1432 (cond, temp, enabled, count, special), self.ui) |
1439 (cond, temp, enabled, count, special), self.ui) |
1433 if dlg.exec_() == QDialog.Accepted: |
1440 if dlg.exec_() == QDialog.Accepted: |
1434 cond, temp, enabled, count, special = dlg.getData() |
1441 cond, temp, enabled, count, special = dlg.getData() |
1435 |
1442 |
1436 # check for duplicates |
1443 # check for duplicates |
1437 idx = self.__model.getWatchPointIndex(cond, special) |
1444 idx = model.getWatchPointIndex(cond, special) |
1438 duplicate = (idx.isValid() and |
1445 duplicate = (idx.isValid() and |
1439 idx.internalPointer() != index.internalPointer()) |
1446 idx.internalPointer() != index.internalPointer()) |
1440 if duplicate: |
1447 if duplicate: |
1441 if not special: |
1448 if not special: |
1442 msg = self.tr( |
1449 msg = self.tr( |