ilusm.dev

dbg

debugging, introspection, breakpoints, stack traces, REPL hooks.

Load with: use dbg

Quick example

use dbg

result = dbgin(10)
prn(result)

Functions

Stack traces

dbgbt()

Performs the operation.

dbgbt()

Performs the operation.

Variable inspection

dbgin(nam)

Initialises. Takes nam.

dbgin(names)

Initialises. Takes names.

Breakpoints

dbgse(file, line)

Sets a value. Takes file, line.

dbgcl(file, line)

Closes or clears. Takes file, line.

dbgcl()

Closes or clears.

Execution control

dbgst()

Sets a value or starts a process.

dbgst()

Sets a value or starts a process.

dbgco()

Connects.

REPL evaluation

dbgev(src)

Performs the operation. Takes src.

dbgpr(v)

Processes or prints. Takes v.

Current location

dbgwh()

Performs the operation.

dbgwh()

Performs the operation.

Watchpoints (variable changes)

dbgwa(nam, cond_fn)

Performs the operation. Takes nam, cond_fn.

dbgcl(id)

Closes or clears. Takes id.

Frame inspection

dbgfr()

Creates from another format.

dbgfr(depth)

Creates from another format. Takes depth.

dbgfr(depth)

Creates from another format. Takes depth.

Memory inspection (unsafe)

dbgme(addr, len)

Performs the operation. Takes addr, len.

dbgme(pattern)

Performs the operation. Takes pattern.

Trace logging

dbgtr()

Performs the operation.

dbgtr()

Performs the operation.

dbgtr()

Performs the operation.

Assertion with break

dbgas(v, msg)

Performs the operation. Takes v, msg.

Conditional break

dbgbr(cond_fn)

Performs the operation. Takes cond_fn.

Notes

  • Debugger hooks - breakpoints, step, inspect.