Skip to content

Add API to provide debugger variables for ContinuationFrame subclasses #69

Description

@object-Object

This feature would replace the following code:

returnwhen (val frame = continuation.frame) {
isFrameEvaluate-> sequenceOf(
toVariable("Code", frame.list, sourceLine),
toVariable("IsMetacasting", frame.isMetacasting.toString()),
)
isFrameForEach-> sequenceOf(
toVariable("Code", frame.code, sourceLine),
toVariable("Data", frame.data),
frame.baseStack?.let { toVariable("BaseStack", it) },
toVariable("Result", frame.acc),
).filterNotNull()
isFrameBreakpoint-> sequenceOf(
toVariable("StopBefore", frame.stopBefore.toString()),
toVariable("IsFatal", frame.isFatal.toString()),
)
else->if (sourceLine.isNotEmpty()) sequenceOf(
toVariable("Code", sourceLine),
) elsenull
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions