code: function install(options, io) {
      try {
          AdapterManager = require('./lib/adapterManager');
          createDebugServer = require('./lib/debugServer');
      } catch (ex) {
          return false;
      }
      var app = options.app;
  
      /** @type {Map.<string, DebugAdapter>} */
      var adapterPool = new Map();
  
      // Streaming files from debug adapters
      app.use('/debug/file', require('./lib/debugFile')(adapterPool));
  
      // Get workspace path of the Orion user when this debug server runs as a module of Orionode)
      app.get('/debug/workspacePath', function(req, res) {
          if (req.user) {
              var fullWorkspace;
              if (req.user.workspaceDir) {
                  fullWorkspace = req.user.workspaceDir;
              } else {
                  fullWorkspace = options.workspaceDir;
              }
              fs.realpath(fullWorkspace, function(err, realWorkspace) {
                  if (err) {
                      res.send(fullWorkspace);
                  } else {
                      res.send(realWorkspace);
                  }
              });
          } else {
              res.sendStatus(204);
          }
      });
  
      // Get all available adapter types
      app.get('/debug/adapterTypes', function(req, res) {
          res.header('Content-Type', 'application/json');
          res.send(JSON.stringify(AdapterManager.types));
      });
  
      // Get the list of template of a specific adapter
      app.get('/debug/templates/:type', function(req, res) {
          res.header('Content-Type', 'application/json');
          res.send(JSON.stringify(AdapterManager.getTemplates(req.params.type)));
      });
  
      // Main logic
      io.of('/debug').on('connection', createDebugServer(adapterPool));
  
      return true;
  }
docs: Install endpoints
  
  @param {Object} options
  @param {Express} options.app
  @param {SocketIO.Server} options.io
  @param {string} [options.listenPath]
  @param {string} [options.workspaceDir]
  @return {boolean} - success