#NEWLINE# def valid_debugger_plugin( self , plugin ) : #NEWLINE# #INDENT# "\n        Validate a debugger plugin, ensuring it is a debugger plugin and has\n        the necessary fields present.\n\n        `plugin` is a subclass of scruffy's Plugin class.\n        " #NEWLINE# if ( issubclass ( plugin , DebuggerAdaptorPlugin ) and hasattr ( plugin , 'plugin_type' ) and ( plugin . plugin_type == 'debugger' ) and hasattr ( plugin , 'host' ) and ( plugin . host != None ) ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# return False