Skip to content

xlflow trace

Manage VBA trace logging support and trace log cleanup.

Usage

bash
xlflow trace enable
xlflow trace status
xlflow trace disable
xlflow trace clean
xlflow trace inject

Options and Arguments

Option / argumentDescriptionDefault
enableEnable trace helper support.-
statusReport helper and log state.-
disableRemove trace helper support when safe.-
cleanRemove trace logs.-
injectInject helper into the active/session workbook.-
--sessionOperate against the managed live session workbook.false

Examples

bash
xlflow trace enable --json
xlflow run Main.Run --trace --json
xlflow trace clean --json

Notes

TIP

VBA code can call XlflowLog after trace support is available.

WARNING

trace disable refuses unsafe removal when the helper appears modified or in use.

JSON Output Example

Successful --json output uses the xlflow envelope plus command-specific fields.

json
{
  "status": "ok",
  "command": "trace status",
  "trace": { "enabled": true, "log": ".xlflow/trace.log" }
}

Released under the MIT License.