private static void launchDebugger(String dmlScriptStr,String fnameOptConfig,Map<String,String> argVals,boolean parsePyDML) throws ParseException, IOException, DMLRuntimeException, DMLDebuggerException, LanguageException, HopsException, LopsException {
  DMLDebuggerProgramInfo dbprog=new DMLDebuggerProgramInfo();
  DMLConfig conf=DMLConfig.readConfigurationFile(fnameOptConfig);
  ConfigurationManager.setGlobalConfig(conf);
  AParserWrapper parser=AParserWrapper.createParser(parsePyDML);
  DMLProgram prog=parser.parse(DML_FILE_PATH_ANTLR_PARSER,dmlScriptStr,argVals);
  DMLTranslator dmlt=new DMLTranslator(prog);
  dmlt.liveVariableAnalysis(prog);
  dmlt.validateParseTree(prog);
  dmlt.constructHops(prog);
  dmlt.rewriteHopsDAG(prog);
  dmlt.constructLops(prog);
  dbprog.rtprog=prog.getRuntimeProgram(conf);
  try {
    initHadoopExecution(conf);
    DMLDebugger SystemMLdb=new DMLDebugger(dbprog,dmlScriptStr);
    SystemMLdb.runSystemMLDebugger();
  }
  finally {
    cleanupHadoopExecution(conf);
  }
}

private static void launchDebugger ( String dmlScriptStr , String fnameOptConfig , Map < String , String > argVals , boolean parsePyDML ) throws ParseException , IOException , DMLRuntimeException , DMLDebuggerException , LanguageException , HopsException , LopsException { DMLDebuggerProgramInfo dbprog = new DMLDebuggerProgramInfo ( ) ; DMLConfig conf = DMLConfig . readConfigurationFile ( fnameOptConfig ) ; ConfigurationManager . setGlobalConfig ( conf ) ; AParserWrapper parser = AParserWrapper . createParser ( parsePyDML ) ; DMLProgram prog = parser . parse ( DML_FILE_PATH_ANTLR_PARSER , dmlScriptStr , argVals ) ; DMLTranslator dmlt = new DMLTranslator ( prog ) ; dmlt . liveVariableAnalysis ( prog ) ; dmlt . validateParseTree ( prog ) ; dmlt . constructHops ( prog ) ; dmlt . rewriteHopsDAG ( prog ) ; dmlt . constructLops ( prog ) ; dbprog . rtprog = prog . getRuntimeProgram ( conf ) ; try { initHadoopExecution ( conf ) ; DMLDebugger SystemMLdb = new DMLDebugger ( dbprog , dmlScriptStr ) ; SystemMLdb . runSystemMLDebugger ( ) ; } finally { cleanupHadoopExecution ( conf ) ; } }
launchdebugger : launcher for dml debugger . this method should be called after execution and debug properties have been correctly set , and customized parameters have been put into _argvals
