// StartDebugServer starts a server that gosh instances can connect to
// to send debugging messages.
StartDebugServer starts a server that gosh instances can connect to
to send debugging messages.
// StartDebugServer starts a server that gosh instances can connect to // to send debugging messages .
func StartDebugServer() {
	sc, err := ipc.StartServer("goshdebug", nil)
	if err != nil {
		log.Println(err)
		return
	}
	log.Println("debugger ready, now open gosh with debugging enabled")
	run := true
	for run {
		msg, err := sc.Read()
		if err != nil {
			log.Println(err)
		} else if msg.MsgType > 0 {
			var s string = string(msg.Data)
			if s == "stop" {
				log.Println("going to stop")
				run = false
			} else {
				name := shared.ModuleIdentifierFromInt(msg.MsgType).String()
				log.Printf("%s: %s\n", name, string(msg.Data))
			}
		}
	}
}
func StartDebugServer ( ) { sc , err := ipc . StartServer ( " " , nil ) if err != nil { log . Println ( err ) return } log . Println ( " " ) run := true for run { msg , err := sc . Read ( ) if err != nil { log . Println ( err ) } else if msg . MsgType > 0 { var s string = string ( msg . Data ) if s == " " { log . Println ( " " ) run = false } else { name := shared . ModuleIdentifierFromInt ( msg . MsgType ) . String ( ) log . Printf ( " \n " , name , string ( msg . Data ) ) } } } }
StartDebugServer starts a server that gosh instances can connect to
to send debugging messages.
StartDebugServer starts a server that gosh instances can connect to to send debugging messages .