code: function createAdapter(type) {
      var adapterConfig = adaptersConfig[type];
      if (!adapterConfig) {
          throw new Error('Adapter type ' + type + ' has not been registered.');
      }
      return new DebugAdapter(adaptersConfig[type], adaptersCwd[type]);
  }
docs: Create a new adapter instance
  @param {string} type - adapter type name
  @return {DebugAdapter}