def handle_debug_backtrace(self, call_id, payload):
        """Handle responses `DebugBacktrace`."""
        frames = payload["frames"]
        fd, path = tempfile.mkstemp('.json', text=True, dir=self.tmp_diff_folder)
        tmpfile = os.fdopen(fd, 'w')

        tmpfile.write(json.dumps(frames, indent=2))
        opts = {'readonly': True, 'bufhidden': 'wipe',
                'buflisted': False, 'swapfile': False}
        self.editor.split_window(path, size=20, bufopts=opts)
        tmpfile.close()
def handle_debug_backtrace ( self , call_id , payload ) : frames = payload [ "frames" ] fd , path = tempfile . mkstemp ( '.json' , text = True , dir = self . tmp_diff_folder ) tmpfile = os . fdopen ( fd , 'w' ) tmpfile . write ( json . dumps ( frames , indent = 2 ) ) opts = { 'readonly' : True , 'bufhidden' : 'wipe' , 'buflisted' : False , 'swapfile' : False } self . editor . split_window ( path , size = 20 , bufopts = opts ) tmpfile . close ( )
Handle responses `DebugBacktrace`.