proto

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MsgIdUnknown = iota

	MsgIdInitReq
	MsgIdInitRsp

	MsgIdReadyReq
	MsgIdReadyRsq

	MsgIdAddBreakPointReq
	MsgIdAddBreakPointRsp

	MsgIdRemoveBreakPointReq
	MsgIdRemoveBreakPointRsp

	MsgIdActionReq
	MsgIdActionRsp

	MsgIdEvalReq
	MsgIdEvalRsp

	// debugger -> ide
	MsgIdBreakNotify
	MsgIdAttachedNotify

	MsgIdStartHookReq
	MsgIdStartHookRsp

	// debugger -> ide
	MsgIdLogNotify
)

Variables

This section is empty.

Functions

func GetMsg

func GetMsg(msgId int) interface{}

Types

type ActionReq

type ActionReq struct {
	Action DebugAction `json:"action"`
}

type ActionRsp

type ActionRsp struct {
}

type AddBreakPointReq

type AddBreakPointReq struct {
	Clear       bool         `json:"clear"`
	BreakPoints []BreakPoint `json:"breakPoints"`
}

type AddBreakPointRsp

type AddBreakPointRsp struct {
}

type BreakNotify

type BreakNotify struct {
	Cmd    int     `json:"cmd"`
	Stacks []Stack `json:"stacks"`
}

type BreakPoint

type BreakPoint struct {
	File      string `json:"file"`
	Line      int    `json:"line"`
	Condition string `json:"condition"`
	HitCount  int    `json:"hitCount"`
}

type DebugAction

type DebugAction int
const (
	Break DebugAction = iota
	Continue
	StepOver
	StepIn
	StepOut
	Stop
)

type EvalReq

type EvalReq struct {
	Seq        int    `json:"seq"`
	Expr       string `json:"expr"`
	StackLevel int    `json:"stackLevel"`
	Depth      int    `json:"depth"`
	CacheId    int    `json:"cacheId"`
}

type EvalRsp

type EvalRsp struct {
	Seq     int       `json:"seq"`
	Success bool      `json:"success"`
	Error   string    `json:"error"`
	Value   *Variable `json:"value"`
}

type InitReq

type InitReq struct {
	EmmyHelper string   `json:"emmyHelper"`
	Ext        []string `json:"ext"`
}

type InitRsp

type InitRsp struct {
	Version string `json:"version"`
}

type ReadyReq

type ReadyReq struct {
}

type RemoveBreakPointReq

type RemoveBreakPointReq struct {
	BreakPoints []BreakPoint `json:"breakPoints"`
}

type RemoveBreakPointRsp

type RemoveBreakPointRsp struct {
}

type Stack

type Stack struct {
	Level            int         `json:"level"`
	File             string      `json:"file"`
	FunctionName     string      `json:"functionName"`
	Line             int         `json:"line"`
	LocalVariables   []*Variable `json:"localVariables"`
	UpvalueVariables []*Variable `json:"upvalueVariables"`
}

type Variable

type Variable struct {
	Name          string      `json:"name"`
	NameType      int         `json:"nameType"`
	Value         string      `json:"value"`
	ValueType     int         `json:"valueType"`
	ValueTypeName string      `json:"valueTypeName"`
	Children      []*Variable `json:"children"`
}

Jump to

Keyboard shortcuts

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