debug

package
v0.0.0-...-eda43a2 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FileLineNo  = iota << 1 // like main.go:100
	FileFunc                // like main.go:main
	PackageFunc             // like main.main
)

Variables

This section is empty.

Functions

func Cleanup

func Cleanup()

Cleanup 清理调试会话

Types

type DebugSession

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

DebugSession 调试会话

var (
	CurrentSession *DebugSession
)

func NewDebugSession

func NewDebugSession() *DebugSession

NewDebugSession 创建一个debug专用的交互管理器

func (*DebugSession) AtExit

func (s *DebugSession) AtExit(fn func()) *DebugSession

func (*DebugSession) Start

func (s *DebugSession) Start()

func (*DebugSession) Stop

func (s *DebugSession) Stop()

type LocSpec

type LocSpec string

type Location

type Location string

Location location in source code, see LocSpec below

Jump to

Keyboard shortcuts

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