src/eric7/Debugger/DebugViewer.py

branch
eric7
changeset 10683
779cda568acb
parent 10439
21c28b0f9e41
child 10689
3ede487187f2
equal deleted inserted replaced
10682:47be220abdaf 10683:779cda568acb
532 # just show base filename to make it readable 532 # just show base filename to make it readable
533 s = (os.path.basename(s[0]), s[1], s[2]) 533 s = (os.path.basename(s[0]), s[1], s[2])
534 self.lvvStackComboBox.addItem("{0}:{1}:{2}".format(*s)) 534 self.lvvStackComboBox.addItem("{0}:{1}:{2}".format(*s))
535 self.lvvStackComboBox.blockSignals(block) 535 self.lvvStackComboBox.blockSignals(block)
536 536
537 def __clientLine(self, fn, line, debuggerId, threadName): # noqa: U100 537 def __clientLine(self, _fn, _line, debuggerId, threadName):
538 """ 538 """
539 Private method to handle a change to the current line. 539 Private method to handle a change to the current line.
540 540
541 @param fn filename 541 @param _fn filename (unused)
542 @type str 542 @type str
543 @param line linenumber 543 @param _line linenumber (unused)
544 @type int 544 @type int
545 @param debuggerId ID of the debugger backend 545 @param debuggerId ID of the debugger backend
546 @type str 546 @type str
547 @param threadName name of the thread signaling the event 547 @param threadName name of the thread signaling the event
548 @type str 548 @type str
582 582
583 self.__removeDebugger(debuggerId) 583 self.__removeDebugger(debuggerId)
584 584
585 def __clientSyntaxError( 585 def __clientSyntaxError(
586 self, 586 self,
587 message, # noqa: U100 587 _message,
588 filename, # noqa: U100 588 _filename,
589 lineNo, # noqa: U100 589 _lineNo,
590 characterNo, # noqa: U100 590 _characterNo,
591 debuggerId, 591 debuggerId,
592 threadName, 592 threadName,
593 ): 593 ):
594 """ 594 """
595 Private method to handle a syntax error in the debugged program. 595 Private method to handle a syntax error in the debugged program.
596 596
597 @param message message of the syntax error 597 @param _message message of the syntax error (unused)
598 @type str 598 @type str
599 @param filename translated filename of the syntax error position 599 @param _filename translated filename of the syntax error position (unused)
600 @type str 600 @type str
601 @param lineNo line number of the syntax error position 601 @param _lineNo line number of the syntax error position (unused)
602 @type int 602 @type int
603 @param characterNo character number of the syntax error position 603 @param _characterNo character number of the syntax error position (unused)
604 @type int 604 @type int
605 @param debuggerId ID of the debugger backend 605 @param debuggerId ID of the debugger backend
606 @type str 606 @type str
607 @param threadName name of the thread signaling the event 607 @param threadName name of the thread signaling the event
608 @type str 608 @type str
610 self.__setDebuggerIconAndState(debuggerId, "syntax") 610 self.__setDebuggerIconAndState(debuggerId, "syntax")
611 self.__setThreadIconAndState(debuggerId, threadName, "syntax") 611 self.__setThreadIconAndState(debuggerId, threadName, "syntax")
612 612
613 def __clientException( 613 def __clientException(
614 self, 614 self,
615 exceptionType, # noqa: U100 615 _exceptionType,
616 exceptionMessage, # noqa: U100 616 _exceptionMessage,
617 stackTrace, # noqa: U100 617 _stackTrace,
618 debuggerId, 618 debuggerId,
619 threadName, 619 threadName,
620 ): 620 ):
621 """ 621 """
622 Private method to handle an exception of the debugged program. 622 Private method to handle an exception of the debugged program.
623 623
624 @param exceptionType type of exception raised 624 @param _exceptionType type of exception raised (unused)
625 @type str 625 @type str
626 @param exceptionMessage message given by the exception 626 @param _exceptionMessage message given by the exception (unused)
627 @type (str 627 @type (str
628 @param stackTrace list of stack entries 628 @param _stackTrace list of stack entries (unused)
629 @type list of str 629 @type list of str
630 @param debuggerId ID of the debugger backend 630 @param debuggerId ID of the debugger backend
631 @type str 631 @type str
632 @param threadName name of the thread signaling the event 632 @param threadName name of the thread signaling the event
633 @type str 633 @type str
762 @type int 762 @type int
763 """ 763 """
764 if frameNo >= 0: 764 if frameNo >= 0:
765 self.lvvStackComboBox.setCurrentIndex(frameNo) 765 self.lvvStackComboBox.setCurrentIndex(frameNo)
766 766
767 def __debuggerSelected(self, current, previous): # noqa: U100 767 def __debuggerSelected(self, current, _previous):
768 """ 768 """
769 Private slot to handle the selection of a debugger backend in the 769 Private slot to handle the selection of a debugger backend in the
770 debuggers list. 770 debuggers list.
771 771
772 @param current reference to the new current item 772 @param current reference to the new current item
773 @type QTreeWidgetItem 773 @type QTreeWidgetItem
774 @param previous reference to the previous current item 774 @param _previous reference to the previous current item (unused)
775 @type QTreeWidgetItem 775 @type QTreeWidgetItem
776 """ 776 """
777 if current is not None and self.__doDebuggersListUpdate: 777 if current is not None and self.__doDebuggersListUpdate:
778 if current.parent() is None: 778 if current.parent() is None:
779 # it is a debugger item 779 # it is a debugger item

eric ide

mercurial