Skip to content

WIP: Add Expression Variable Monitoring/Debug API#971

Draft
kblaschke wants to merge 2 commits intomasterfrom
add-expression-debug-api
Draft

WIP: Add Expression Variable Monitoring/Debug API#971
kblaschke wants to merge 2 commits intomasterfrom
add-expression-debug-api

Conversation

@kblaschke
Copy link
Member

Adds a new API for debugging/monitoring expression variables within the active preset.

Users of the library can register arbitrary variables to be monitored in the different code blocks, which helps to identify issues with both presets and the expression parser. It's also helpful for preset authors, as they can track (and potentially graph) variable values in real time, and aren't limited to the single monitor variable Milkdrop provides.

For code blocks which are executed more than once, e.g. frame per-point, custom shape per-frame and custom wave per-point expressions, the API will return an array of all values, one for each executed instance.

Closes #664

@kblaschke kblaschke added this to the 4.2 milestone Feb 26, 2026
@kblaschke kblaschke self-assigned this Feb 26, 2026
@kblaschke kblaschke added the enhancement The feature is considered an enhancement. label Feb 26, 2026
@kblaschke kblaschke changed the title Add Expression Variable Monitoring/Debug API WIP: Add Expression Variable Monitoring/Debug API Feb 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement The feature is considered an enhancement.

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

[FEATURE] Add support for variable monitoring in expressions

1 participant