private static String formatLine(RubyContext context, Activation activation) {
final StringBuilder builder = new StringBuilder();
builder.append(formatBasicLine(activation));
final MaterializedFrame frame = activation.getMaterializedFrame();
final FrameDescriptor frameDescriptor = frame.getFrameDescriptor();
builder.append(" self=");
builder.append(debugString(context, RubyArguments.getSelf(frame.getArguments())));
for (Object identifier : frameDescriptor.getIdentifiers()) {
if (identifier instanceof String) {
builder.append(" ");
builder.append(identifier);
builder.append("=");
builder.append(debugString(context, frame.getValue(frameDescriptor.findFrameSlot(identifier))));
}
}
return builder.toString();
}