Ejemplo n.º 1
0
    def refreshList(self):
        self.DeleteAllItems()
        bps = bplist.getBreakpointList()
        # Sort by filename and lineno.
        bps.sort(lambda a, b: cmp((a['filename'], a['lineno']),
                                  (b['filename'], b['lineno'])))
        self.bps = bps
        for p in range(len(bps)):
            bp = bps[p]
            # setup prelim image
            imgIdx = 0
            if not bp['enabled']: imgIdx = 2
            elif bp['temporary']: imgIdx = 3

            self.InsertImageStringItem(p, os.path.basename(bp['filename']),
                                       imgIdx)
            self.SetStringItem(p, 1, str(bp['lineno']))

            hits = ''
            ignore = ''
            cond = ''
            if self.stats_map:
                item = self.stats_map.get((bp['filename'], bp['lineno']), None)
                if item is not None:
                    hits = str(item['hits'])
                    ignore = str(item['ignore'])
                    cond = item['cond'] or ''

            self.SetStringItem(p, 2, ignore)
            self.SetStringItem(p, 3, hits)
            self.SetStringItem(p, 4, cond)
Ejemplo n.º 2
0
    def refreshList(self):
        self.DeleteAllItems()
        bps = bplist.getBreakpointList()
        # Sort by filename and lineno.
        bps.sort(lambda a, b: cmp((a["filename"], a["lineno"]), (b["filename"], b["lineno"])))
        self.bps = bps
        for p in range(len(bps)):
            bp = bps[p]
            # setup prelim image
            imgIdx = 0
            if not bp["enabled"]:
                imgIdx = 2
            elif bp["temporary"]:
                imgIdx = 3

            self.InsertImageStringItem(p, os.path.basename(bp["filename"]), imgIdx)
            self.SetStringItem(p, 1, str(bp["lineno"]))

            hits = ""
            ignore = ""
            cond = ""
            if self.stats_map:
                item = self.stats_map.get((bp["filename"], bp["lineno"]), None)
                if item is not None:
                    hits = str(item["hits"])
                    ignore = str(item["ignore"])
                    cond = item["cond"] or ""

            self.SetStringItem(p, 2, ignore)
            self.SetStringItem(p, 3, hits)
            self.SetStringItem(p, 4, cond)
Ejemplo n.º 3
0
    def refreshList(self):
        self.DeleteAllItems()
        bps = bplist.getBreakpointList()
        # Sort by filename and lineno.
        bps.sort(lambda a, b:
                 cmp((a['filename'], a['lineno']),
                     (b['filename'], b['lineno'])))
        self.bps = bps
        for p in range(len(bps)):
            bp = bps[p]
            # setup prelim image
            imgIdx = 0
            if not bp['enabled']: imgIdx = 2
            elif bp['temporary']: imgIdx = 3

            self.InsertImageStringItem(
                p, os.path.basename(bp['filename']), imgIdx)
            self.SetStringItem(p, 1, str(bp['lineno']))

            hits = ''
            ignore = ''
            cond = ''
            if self.stats_map:
                item = self.stats_map.get((bp['filename'], bp['lineno']), None)
                if item is not None:
                    hits = str(item['hits'])
                    ignore = str(item['ignore'])
                    cond = item['cond'] or ''

            self.SetStringItem(p, 2, ignore)
            self.SetStringItem(p, 3, hits)
            self.SetStringItem(p, 4, cond)
Ejemplo n.º 4
0
 def runProcess(self, autocont=0):
     self.running = 1
     self.sb.updateState(_('Waiting...'), 'busy')
     brks = bplist.getBreakpointList()
     for brk in brks:
         brk['filename'] = self.clientFNToServerFN(brk['filename'])
     if self.slave_mode:
         # Work with a child process.
         add_paths = simplifyPathList(pyPath)
         add_paths = map(self.clientFNToServerFN, add_paths)
         filename = self.clientFNToServerFN(self.filename)
         self.invokeInDebugger(
             'runFileAndRequestStatus',
             (filename, self.params or [], autocont, add_paths, brks),
             'receiveDebuggerStatus')
     else:
         # Work with a peer or remote process.
         self.invokeInDebugger('setupAndRequestStatus', (autocont, brks),
                               'receiveDebuggerStatus')
Ejemplo n.º 5
0
 def runProcess(self, autocont=0):
     self.running = 1
     self.sb.updateState(_('Waiting...'), 'busy')
     brks = bplist.getBreakpointList()
     for brk in brks:
         brk['filename'] = self.clientFNToServerFN(brk['filename'])
     if self.slave_mode:
         # Work with a child process.
         add_paths = simplifyPathList(pyPath)
         add_paths = map(self.clientFNToServerFN, add_paths)
         filename = self.clientFNToServerFN(self.filename)
         self.invokeInDebugger(
             'runFileAndRequestStatus',
             (filename, self.params or [], autocont, add_paths, brks),
             'receiveDebuggerStatus')
     else:
         # Work with a peer or remote process.
         self.invokeInDebugger(
             'setupAndRequestStatus',
             (autocont, brks),
             'receiveDebuggerStatus')