debug

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ServerAddress string
View Source
var ServerNetwork string

Functions

func DecodeMessage

func DecodeMessage(rd io.Reader) (interface{}, error)

func EncodeMessage

func EncodeMessage(msg interface{}) ([]byte, error)

func Exit added in v1.3.1

func Exit(code int)

Auto-inserted in annotated files to replace os.Exit calls. Not to be used.

func ExitServer

func ExitServer()

Auto-inserted at main for a clean exit. Not to be used.

func Line

func Line(fileIndex, debugIndex, offset int, item Item)

Auto-inserted at annotations. Not to be used.

func RegisterStructsForEncodeDecode added in v1.3.3

func RegisterStructsForEncodeDecode(encoderId string)

func SprintCutCheckQuote added in v1.3.3

func SprintCutCheckQuote(max int, s string) string

func StartServer

func StartServer()

Called by the generated config.

Types

type AnnotatorFileData

type AnnotatorFileData struct {
	FileIndex int
	DebugLen  int
	Filename  string
	FileSize  int
	FileHash  []byte
}

type CConn

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

Client connection.

func NewCConn added in v1.3.3

func NewCConn(srv *Server, conn net.Conn) *CConn

type FilesDataMsg

type FilesDataMsg struct {
	Data []*AnnotatorFileData
}

type Item

type Item interface {
	// contains filtered or unexported methods
}

func IA

func IA(lhs *ItemList, op int, rhs *ItemList) Item

ItemAssign

func IAn

func IAn() Item

ItemAnon

func IB

func IB(x Item, op int, y Item, result Item) Item

ItemBinary

func IBr

func IBr() Item

ItemBranch

func IC

func IC(enter Item, result Item) Item

ItemCall

func ICe

func ICe(fun Item, args *ItemList) Item

ItemCall: enter

func II

func II(expr, index, result Item) Item

ItemIndex

func II2

func II2(expr, low, high, max Item, slice3 bool, result Item) Item

func IKV

func IKV(key, value Item) Item

ItemKeyValue

func IL2

func IL2(u ...Item) Item

func ILa

func ILa(reason string) Item

ItemLabel

func ILit

func ILit(fields *ItemList) Item

ItemLiteral

func INAnn added in v1.3.1

func INAnn(reason string) Item

ItemNotAnn

func IP

func IP(x Item) Item

ItemParen

func IS

func IS(ch, value Item) Item

ItemSend

func ISel

func ISel(x, sel Item) Item

ItemSelector

func ISt

func ISt() Item

ItemStep

func ITA

func ITA(x, t Item) Item

ItemTypeAssert

func IU

func IU(enter Item, result Item) Item

ItemUnary

func IUe

func IUe(op int, x Item) Item

ItemUnary: enter

func IVi added in v1.3.3

func IVi(v interface{}) Item

ItemValue: interface (ex: int=1, string="1")

func IVr added in v1.3.1

func IVr(v int) Item

ItemValue: range

func IVs

func IVs(s string) Item

ItemValue: string (ex: value of "?" is presented without quotes)

func IVt

func IVt(v interface{}) Item

ItemValue: typeof

type ItemAnon

type ItemAnon struct {
	Item
}

type ItemAssign

type ItemAssign struct {
	Item
	Lhs *ItemList
	Op  int
	Rhs *ItemList
}

type ItemBinary

type ItemBinary struct {
	Item
	X      Item
	Op     int
	Y      Item
	Result Item
}

type ItemBranch

type ItemBranch struct {
	Item
}

type ItemCall

type ItemCall struct {
	Item
	Enter  *ItemCallEnter
	Result Item
}

type ItemCallEnter

type ItemCallEnter struct {
	Item
	Fun  Item
	Args *ItemList
}

type ItemIndex

type ItemIndex struct {
	Item
	Expr   Item
	Index  Item
	Result Item
}

type ItemIndex2

type ItemIndex2 struct {
	Item
	Expr           Item
	Low, High, Max Item
	Slice3         bool // 2 colons present
	Result         Item
}

type ItemKeyValue

type ItemKeyValue struct {
	Item
	Key   Item
	Value Item
}

type ItemLabel

type ItemLabel struct {
	Item
	Reason string // ex: "for" init not debugged
}

type ItemList

type ItemList struct {
	Item
	List []Item
}

func IL

func IL(u ...Item) *ItemList

ItemList ("," and ";")

type ItemList2

type ItemList2 struct {
	Item
	List []Item
}

type ItemLiteral

type ItemLiteral struct {
	Item
	Fields *ItemList
}

type ItemNotAnn added in v1.3.1

type ItemNotAnn struct {
	Item
	Reason string // not annotated (ex: String(), Error())
}

type ItemParen

type ItemParen struct {
	Item
	X Item
}

type ItemSelector

type ItemSelector struct {
	Item
	X   Item
	Sel Item
}

type ItemSend

type ItemSend struct {
	Item
	Chan, Value Item
}

type ItemStep

type ItemStep struct {
	Item
}

type ItemTypeAssert

type ItemTypeAssert struct {
	Item
	X    Item
	Type Item
}

type ItemUnary

type ItemUnary struct {
	Item
	Enter  *ItemUnaryEnter
	Result Item
}

type ItemUnaryEnter

type ItemUnaryEnter struct {
	Item
	Op int
	X  Item
}

type ItemValue

type ItemValue struct {
	Item
	Str string
}

type LineMsg

type LineMsg struct {
	FileIndex  int
	DebugIndex int
	Offset     int
	Item       Item
}

type ReqFilesDataMsg

type ReqFilesDataMsg struct{}

type ReqStartMsg

type ReqStartMsg struct{}

type Server

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

func NewServer

func NewServer() (*Server, error)

func (*Server) Close

func (srv *Server) Close() error

func (*Server) Send

func (srv *Server) Send(v *LineMsg)

Jump to

Keyboard shortcuts

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