当前位置: 首页>>代码示例>>Python>>正文


Python RemoteDebugger类代码示例

本文整理汇总了Python中RemoteDebugger的典型用法代码示例。如果您正苦于以下问题:Python RemoteDebugger类的具体用法?Python RemoteDebugger怎么用?Python RemoteDebugger使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了RemoteDebugger类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: close_debugger

 def close_debugger(self):
     db = self.interp.getdebugger()
     if db:
         self.interp.setdebugger(None)
         db.close()
         if self.interp.rpcclt:
             RemoteDebugger.close_remote_debugger(self.interp.rpcclt)
         self.resetoutput()
         self.console.write("[DEBUG OFF]\n")
         sys.ps1 = ">>> "
         self.showprompt()
     self.set_debugger_indicator()
开发者ID:AkshayJoshi,项目名称:python,代码行数:12,代码来源:PyShell.py

示例2: open_debugger

 def open_debugger(self):
     if self.interp.rpcclt:
         dbg_gui = RemoteDebugger.start_remote_debugger(self.interp.rpcclt,
                                                        self)
     self.interp.setdebugger(dbg_gui)
     self.idb = dbg_gui.idb
     self.dbg_gui = dbg_gui
开发者ID:lebauce,项目名称:artub,代码行数:7,代码来源:glumoldebugger.py

示例3: open_debugger

 def open_debugger(self):
     if self.interp.rpcclt:
         dbg_gui = RemoteDebugger.start_remote_debugger(self.interp.rpcclt, self)
     else:
         dbg_gui = Debugger.Debugger(self)
     self.interp.setdebugger(dbg_gui)
     dbg_gui.load_breakpoints()
     sys.ps1 = "[DEBUG ON]\n>>> "
     self.showprompt()
     self.set_debugger_indicator()
开发者ID:facchinm,项目名称:SiRFLive,代码行数:10,代码来源:PyShell.py

示例4: restart_subprocess

 def restart_subprocess(self):
     if self.restarting:
         return self.rpcclt
     self.restarting = True
     # close only the subprocess debugger
     debug = self.getdebugger()
     if debug:
         try:
             # Only close subprocess debugger, don't unregister gui_adap!
             RemoteDebugger.close_subprocess_debugger(self.rpcclt)
         except:
             pass
     # Kill subprocess, spawn a new one, accept connection.
     self.rpcclt.close()
     self.unix_terminate()
     self.spawn_subprocess()
     try:
         self.rpcclt.accept()
     except socket.timeout, err:
         self.display_no_subprocess_error()
         return None
开发者ID:lebauce,项目名称:artub,代码行数:21,代码来源:glumoldebugger.py

示例5: restart_subprocess

 def restart_subprocess(self):
     if self.restarting:
         return
     self.restarting = True
     # close only the subprocess debugger
     debug = self.getdebugger()
     if debug:
         try:
             # Only close subprocess debugger, don't unregister gui_adap!
             RemoteDebugger.close_subprocess_debugger(self.rpcclt)
         except:
             pass
     # Kill subprocess, spawn a new one, accept connection.
     self.rpcclt.close()
     self.unix_terminate()
     console = self.tkconsole
     was_executing = console.executing
     console.executing = False
     self.spawn_subprocess()
     self.rpcclt.accept()
     self.transfer_path()
     # annotate restart in shell window and mark it
     console.text.delete("iomark", "end-1c")
     if was_executing:
         console.write('\n')
         console.showprompt()
     halfbar = ((int(console.width) - 16) // 2) * '='
     console.write(halfbar + ' RESTART ' + halfbar)
     console.text.mark_set("restart", "end-1c")
     console.text.mark_gravity("restart", "left")
     console.showprompt()
     # restart subprocess debugger
     if debug:
         # Restarted debugger connects to current instance of debug GUI
         gui = RemoteDebugger.restart_subprocess_debugger(self.rpcclt)
         # reload remote debugger breakpoints for all PyShellEditWindows
         debug.load_breakpoints()
     self.restarting = False
开发者ID:jiangxilong,项目名称:OpenSPARC_T1,代码行数:38,代码来源:PyShell.py

示例6: start_the_debugger

 def start_the_debugger(self, gui_adap_oid):
     return RemoteDebugger.start_debugger(self.rpchandler, gui_adap_oid)
开发者ID:Oize,项目名称:pspstacklesspython,代码行数:2,代码来源:run.py

示例7: __request_interrupt

            return None
        self.transfer_path()
        # annotate restart in shell window and mark it
        console.text.delete("iomark", "end-1c")
        if was_executing:
            console.write('\n')
            console.showprompt()
        halfbar = ((int(console.width) - 16) // 2) * '='
        console.write(halfbar + ' RESTART ' + halfbar)
        console.text.mark_set("restart", "end-1c")
        console.text.mark_gravity("restart", "left")
        console.showprompt()
        # restart subprocess debugger
        if debug:
            # Restarted debugger connects to current instance of debug GUI
            gui = RemoteDebugger.restart_subprocess_debugger(self.rpcclt)
            # reload remote debugger breakpoints for all PyShellEditWindows
            debug.load_breakpoints()
        self.restarting = False
        return self.rpcclt

    def __request_interrupt(self):
        self.rpcclt.remotecall("exec", "interrupt_the_server", (), {})

    def interrupt_subprocess(self):
        threading.Thread(target=self.__request_interrupt).start()

    def kill_subprocess(self):
        try:
            self.rpcclt.close()
        except AttributeError:  # no socket
开发者ID:AkshayJoshi,项目名称:python,代码行数:31,代码来源:PyShell.py


注:本文中的RemoteDebugger类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。