debugger

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2022 License: MIT Imports: 1 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 bool) *DebuggerService

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