diff --git a/alethzero/Debugger.cpp b/alethzero/Debugger.cpp index ea6f782ad..14dcdb274 100644 --- a/alethzero/Debugger.cpp +++ b/alethzero/Debugger.cpp @@ -246,8 +246,10 @@ void Debugger::update() ss << dec << "STEP: " << ws.steps << " | PC: 0x" << hex << ws.curPC << " : " << instructionInfo(ws.inst).name << " | ADDMEM: " << dec << ws.newMemSize << " words | COST: " << dec << ws.gasCost << " | GAS: " << dec << ws.gas; ui->debugStateInfo->setText(QString::fromStdString(ss.str())); stringstream s; - for (auto const& i: ws.storage) - s << "@" << m_context->prettyU256(i.first) << "    " << m_context->prettyU256(i.second) << "
"; + auto keys = dev::keysOf(ws.storage); + sort(keys.begin(), keys.end()); + for (auto const& key: keys) + s << "@" << m_context->prettyU256(key) << "    " << m_context->prettyU256(ws.storage.at(key)) << "
"; ui->debugStorage->setHtml(QString::fromStdString(s.str())); } }