debuggers

package
v0.0.0-...-412c607 Latest Latest
Warning

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

Go to latest
Published: May 3, 2023 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogInterceptor

type LogInterceptor struct {
	ComputationIntensities map[uint64]uint64 `json:"computationIntensities"`
	MemoryIntensities      map[uint64]uint64 `json:"memoryIntensities"`
	// contains filtered or unexported fields
}

func NewLogInterceptor

func NewLogInterceptor(log zerolog.Logger, directory string) *LogInterceptor

func (*LogInterceptor) Close

func (l *LogInterceptor) Close() error

func (*LogInterceptor) Write

func (l *LogInterceptor) Write(p []byte) (n int, err error)

type ProfileBuilder

type ProfileBuilder struct {
	Profile *profile.Profile
	// contains filtered or unexported fields
}

func NewProfileBuilder

func NewProfileBuilder(directory string) *ProfileBuilder

func (*ProfileBuilder) Close

func (p *ProfileBuilder) Close() error

func (*ProfileBuilder) OnCadenceStatement

func (p *ProfileBuilder) OnCadenceStatement(fvmEnv fvmRuntime.Environment, inter *interpreter.Interpreter, statement ast.Statement)

type RemoteDebugger

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

func NewRemoteDebugger

func NewRemoteDebugger(
	view *debugger.RemoteView,
	chain flow.Chain,
	directory string,
	logger zerolog.Logger) *RemoteDebugger

func (*RemoteDebugger) Close

func (d *RemoteDebugger) Close() error

func (*RemoteDebugger) RunScript

func (d *RemoteDebugger) RunScript(code []byte, arguments [][]byte) (value cadence.Value, scriptError, processError error)

func (*RemoteDebugger) RunTransaction

func (d *RemoteDebugger) RunTransaction(txBody *flow.TransactionBody) (txErr, processError error)

RunTransaction runs the transaction given the latest sealed block data

type TransactionDebugger

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

func NewTransactionDebugger

func NewTransactionDebugger(
	txResolver debugger.TransactionResolver,
	archiveHost string,
	dpsClient dps.APIClient,
	chain flow.Chain,
	logger zerolog.Logger) *TransactionDebugger

func (*TransactionDebugger) RunTransaction

func (d *TransactionDebugger) RunTransaction(ctx context.Context) (txErr, processError error)

Jump to

Keyboard shortcuts

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