'Get breakpoints'

def get_breakpoints(self):

    breakpoints = []
    block = self.document().firstBlock()
    for line_number in range(1, (self.document().blockCount() + 1)):
        data = block.userData()
        if (data and data.breakpoint):
            breakpoints.append((line_number, data.breakpoint_condition))
        block = block.next()
    return breakpoints
