public string GetParameters() { if (!EmonicInterpreter.IsCurrentThreadStopped()) { // would block if current thread is not stopped! return("--"); } EmonicLineInterpreter.AddCmd("show parameters"); string result = EmonicInterpreter.GetParamsOutput(); return(result); }
public EmonicInterpreter.printData Print(string variableName) { if (!EmonicInterpreter.IsCurrentThreadStopped()) { // would block if current thread is not stopped! EmonicInterpreter.printData error = new EmonicInterpreter.printData(); error.type = error.varValue = error.varNames = ""; return(error); } EmonicLineInterpreter.AddCmd("print " + variableName); EmonicInterpreter.printData pd = EmonicInterpreter.GetPrintOutput(); return(pd); }
public string PtypeFieldsOnly(string className, bool staticOnly) { if (!EmonicInterpreter.IsCurrentThreadStopped()) { // would block if current thread is not stopped! return("--"); } EmonicLineInterpreter.AddCmd("ptype " + className); string result; if (staticOnly) { result = EmonicInterpreter.GetPTypeOutputStaticOnly(); } else { result = EmonicInterpreter.GetPTypeOutput(); } return(result); }