String projectName = commandLine.getValue(Options.PROJECT_OPTION);
String vimInstanceId = commandLine.getValue(Options.VIM_INSTANCE_OPTION);
String host = commandLine.getValue(Options.HOST_OPTION);
int port = commandLine.getIntValue(Options.PORT_NUMBER_OPTION);
DebuggerContext ctx = new DebuggerContext(
ProjectUtils.getProject(projectName), host, port, vimInstanceId);
DebuggerContextManager.add(ctx);
// Start context only after adding to context manager. There are other
// classes that lookup the context once the context is started and events
// are fired.
ctx.start();
return Services.getMessage("debugging.session.started");
}