debug

package module
v0.0.0-...-49fe472 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2021 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartDebugServer

func StartDebugServer()

StartDebugServer starts a server that gosh instances can connect to to send debugging messages

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client can be used to send debugging data from the gosh client to a gosh-debug server

func NewClient

func NewClient() (*Client, error)

NewClient creates a new client and attaches it to a local gosh-debug server.

func (*Client) SendMessage

func (c *Client) SendMessage(k int, msg string)

SendMessage writes a debugging message to the attached debugger. If this client isn't connected, the function returns.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL