Skip to main content

Module toolchain

Module toolchain 

Source
Expand description

litz toolchain: which firmware toolchains this machine has, and litz editor --vscode: the editor configuration that points a debugger at the runner’s GDB stub.

Detection is read-only. It looks for executables on PATH (and under $IDF_PATH) and runs only version-style commands, each with a short timeout. It makes no network calls and installs nothing.

The editor configuration is ordinary VS Code JSON: a cppdbg launch configuration that connects to 127.0.0.1:<port>, and a background task that runs litz run . --gdb <port> so the firmware boots, the GDB stub starts, and the run’s serial output stays in the task’s terminal.

Structs§

Environment
What detection may consult: PATH entries and $IDF_PATH.
Tool
One row of the detection table.

Constants§

DEFAULT_GDB_PORT
Port the generated VS Code task serves the GDB stub on.

Functions§

detect
The fixed detection table, in the order the report prints it.
table
The report as one line per tool, with columns aligned.
to_json
The report as a machine-readable object: {"tools": [...]}.
write_vscode
litz editor --vscode: write or merge the editor files for directory.