parameters: (self, request, args)
docstring: Request to get the source
docstring_summary: Request to get the source
docstring_tokens: Request to get the source
function: def on_source(self, request, args):
          """Request to get the source"""
          source_reference = args.get('sourceReference', 0)
          filename = '' if source_reference == 0 else \
              self.source_map.to_pydevd(source_reference)
  
          if source_reference == 0:
              self.send_error_response(request, 'Source unavailable')
          else:
              server_filename = pydevd_file_utils.norm_file_to_server(filename)
  
              cmd = pydevd_comm.CMD_LOAD_SOURCE
              _, _, content = yield self.pydevd_request(cmd, server_filename)
              self.send_response(request, content=content)
function_tokens: def on_source ( self , request , args ) : source_reference = args . get ( 'sourceReference' , 0 ) filename = '' if source_reference == 0 else self . source_map . to_pydevd ( source_reference ) if source_reference == 0 : self . send_error_response ( request , 'Source unavailable' ) else : server_filename = pydevd_file_utils . norm_file_to_server ( filename ) cmd = pydevd_comm . CMD_LOAD_SOURCE _ , _ , content = yield self . pydevd_request ( cmd , server_filename ) self . send_response ( request , content = content )