(self, ptr, name=None)
MenuItem AddBreakpoint
MenuItem AddBreakpoint
MenuItem AddBreakpoint
def _add_breakpoint(self, ptr, name=None):
        """ MenuItem AddBreakpoint
        """
        if name is None:
            name = ptr
        if isinstance(ptr, str):
            if ptr.startswith('0x') or ptr.startswith('#'):
                self.onAddBreakpoint.emit([ptr, name])
        elif isinstance(ptr, int):
            str_fmt = '0x{0:x}'
            self.onAddBreakpoint.emit(str_fmt.format([ptr, name]))
def _add_breakpoint ( self , ptr , name = None ) : if name is None : name = ptr if isinstance ( ptr , str ) : if ptr . startswith ( '0x' ) or ptr . startswith ( '#' ) : self . onAddBreakpoint . emit ( [ ptr , name ] ) elif isinstance ( ptr , int ) : str_fmt = '0x{0:x}' self . onAddBreakpoint . emit ( str_fmt . format ( [ ptr , name ] ) )