113 self.lastStartAction = 0 # 0=None, 1=Script, 2=Project |
113 self.lastStartAction = 0 # 0=None, 1=Script, 2=Project |
114 self.clientType = "" |
114 self.clientType = "" |
115 self.lastAction = -1 |
115 self.lastAction = -1 |
116 self.debugActions = [ |
116 self.debugActions = [ |
117 self.__continue, self.__step, self.__stepOver, self.__stepOut, |
117 self.__continue, self.__step, self.__stepOver, self.__stepOut, |
118 self.__stepQuit, self.__runToCursor, self.__moveInstructionPointer |
118 self.__stepQuit, self.__runToCursor, self.__runUntil, |
|
119 self.__moveInstructionPointer |
119 ] |
120 ] |
120 self.__localsVarFilterList, self.__globalsVarFilterList = ( |
121 self.__localsVarFilterList, self.__globalsVarFilterList = ( |
121 Preferences.getVarFilters()) |
122 Preferences.getVarFilters()) |
122 self.debugViewer.setVariablesFilter( |
123 self.debugViewer.setVariablesFilter( |
123 self.__globalsVarFilterList, self.__localsVarFilterList) |
124 self.__globalsVarFilterList, self.__localsVarFilterList) |
372 """<b>Continue To Cursor</b>""" |
373 """<b>Continue To Cursor</b>""" |
373 """<p>Continue running the program from the current line to the""" |
374 """<p>Continue running the program from the current line to the""" |
374 """ current cursor position.</p>""" |
375 """ current cursor position.</p>""" |
375 )) |
376 )) |
376 act.triggered.connect(self.__runToCursor) |
377 act.triggered.connect(self.__runToCursor) |
|
378 self.actions.append(act) |
|
379 |
|
380 act = E5Action( |
|
381 self.tr('Continue Until'), |
|
382 UI.PixmapCache.getIcon("continueUntil"), |
|
383 self.tr('Continue &Until'), Qt.SHIFT + Qt.Key_F6, 0, |
|
384 self.debugActGrp, 'dbg_continue_until') |
|
385 act.setStatusTip(self.tr( |
|
386 """Continue running the program from the current line to the""" |
|
387 """ current cursor position or until leaving the current frame""")) |
|
388 act.setWhatsThis(self.tr( |
|
389 """<b>Continue Until</b>""" |
|
390 """<p>Continue running the program from the current line to the""" |
|
391 """ cursor position greater than the current line or until""" |
|
392 """ leaving the current frame.</p>""" |
|
393 )) |
|
394 act.triggered.connect(self.__runUntil) |
377 self.actions.append(act) |
395 self.actions.append(act) |
378 |
396 |
379 act = E5Action( |
397 act = E5Action( |
380 self.tr('Move Instruction Pointer to Cursor'), |
398 self.tr('Move Instruction Pointer to Cursor'), |
381 UI.PixmapCache.getIcon("moveInstructionPointer"), |
399 UI.PixmapCache.getIcon("moveInstructionPointer"), |
2423 self.debugServer.remoteBreakpoint( |
2441 self.debugServer.remoteBreakpoint( |
2424 self.getSelectedDebuggerId(), |
2442 self.getSelectedDebuggerId(), |
2425 aw.getFileName(), line, 1, None, 1) |
2443 aw.getFileName(), line, 1, None, 1) |
2426 self.debugServer.remoteContinue(debuggerId) |
2444 self.debugServer.remoteContinue(debuggerId) |
2427 |
2445 |
|
2446 def __runUntil(self, debuggerId=""): |
|
2447 """ |
|
2448 Private method to handle the Run Until action. |
|
2449 |
|
2450 @param debuggerId ID of the debugger backend |
|
2451 @type str |
|
2452 """ |
|
2453 if not debuggerId: |
|
2454 debuggerId = self.getSelectedDebuggerId() |
|
2455 |
|
2456 self.lastAction = 0 |
|
2457 aw = self.viewmanager.activeWindow() |
|
2458 line = aw.getCursorPosition()[0] + 1 |
|
2459 self.__enterRemote() |
|
2460 self.debugServer.remoteContinueUntil(debuggerId, line) |
|
2461 |
2428 def __moveInstructionPointer(self, debuggerId=""): |
2462 def __moveInstructionPointer(self, debuggerId=""): |
2429 """ |
2463 """ |
2430 Private method to move the instruction pointer to a different line. |
2464 Private method to move the instruction pointer to a different line. |
2431 |
2465 |
2432 @param debuggerId ID of the debugger backend |
2466 @param debuggerId ID of the debugger backend |