Skip to content

Add API to provide debugger variables for ContinuationFrame subclasses #69

@object-Object

Description

@object-Object

This feature would replace the following code:

return when (val frame = continuation.frame) {
is FrameEvaluate -> sequenceOf(
toVariable("Code", frame.list, sourceLine),
toVariable("IsMetacasting", frame.isMetacasting.toString()),
)
is FrameForEach -> sequenceOf(
toVariable("Code", frame.code, sourceLine),
toVariable("Data", frame.data),
frame.baseStack?.let { toVariable("BaseStack", it) },
toVariable("Result", frame.acc),
).filterNotNull()
is FrameBreakpoint -> sequenceOf(
toVariable("StopBefore", frame.stopBefore.toString()),
toVariable("IsFatal", frame.isFatal.toString()),
)
else -> if (sourceLine.isNotEmpty()) sequenceOf(
toVariable("Code", sourceLine),
) else null
}

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