modules/orionode.debug.server/lib/adapterManager.js
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]);
}
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]);
}
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 ] ) ; }
Create a new adapter instance
@param {string} type - adapter type name
@return {DebugAdapter}
Create a new adapter instance