dumpLocals static method

String dumpLocals()

Implementation

static String dumpLocals() {
  var locals = Z.engine.callStack[2];
  StringBuffer s = StringBuffer();

  for (int i = 0; i < locals; i++) {
    s.write('(L$i: 0x${Z.engine.readLocal(i + 1).toRadixString(16)}) ');
  }
  s.write('\n');
  return s.toString();
}