public static SosController breakpoints_Clear(this SosController sosController)
        {
            var command = "!bpmd -clearall";

            sosController.executeCommand(command).info();
            return(sosController);
        }
        public static SosController set_Breakpoint(this SosController sosController, string module, string method)
        {
            var command = "!bpmd {0} {1}".format(module, method);

            sosController.executeCommand(command).info();
            return(sosController);
        }
        public static List <string> types_In_Heap_Raw(this SosController sosController, string typeName)
        {
            var result = sosController.executeCommand("!DumpHeap -short -type " + typeName);

            if (result.contains("Missing value for option -type"))
            {
                return(new List <string>());
            }
            return(result.split(" ").where ((value) => value.contains(">", "-").isFalse()));
        }
 public static string sosExec(this string commandToExecute)
 {
     return(sosController.executeCommand(commandToExecute));
 }
 public static string dumpObject_Raw(this SosController sosController, string instanceAddress)
 {
     return(sosController.executeCommand("!DumpObj " + instanceAddress));
 }
 public static string breakpoints(this SosController sosController)
 {
     return(sosController.executeCommand("!bpmd -list"));
 }
 //this will hang the current thread until there is a breakpoint or Ctrl+C
 public static string go(this SosController sosController)
 {
     return(sosController.executeCommand("g"));
 }
 public static string sos_Help(this SosController sosController)
 {
     return(sosController.executeCommand("!help"));
 }