debugger

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package debugger holds definition of Debugger.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Debugger

type Debugger interface {
	// Print prints provided info.
	Print(info string)

	// IsOn tells whether debugging mode is activated.
	IsOn() bool

	// TurnOn turns on debugging mode.
	TurnOn()

	// TurnOff turns off debugging mode.
	TurnOff()

	// Reset resets debugging mode to init state.
	Reset(isOn bool)
}

Debugger represents debugger.

type DebuggerService

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

DebuggerService is utility tool for debugging

func New

func New(isOn, isColored bool, bytesLimit uint16, writer io.Writer) *DebuggerService

func NewDefault added in v1.2.0

func NewDefault(isOn bool) *DebuggerService

NewDefault returns *DebuggerService writing to stdOut with output limit up to 3072 bytes

func (*DebuggerService) IsOn

func (d *DebuggerService) IsOn() bool

IsOn tells whether debugging mode is activated.

func (*DebuggerService) Print

func (d *DebuggerService) Print(info string)

Print prints provided info.

func (*DebuggerService) Reset

func (d *DebuggerService) Reset(isOn bool)

Reset resets debugging mode to init state.

func (*DebuggerService) TurnOff

func (d *DebuggerService) TurnOff()

TurnOff turns off debugging mode.

func (*DebuggerService) TurnOn

func (d *DebuggerService) TurnOn()

TurnOn turns on debugging mode.

Jump to

Keyboard shortcuts

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