Debugger: Show string in status bar for li, etc.

This is helpful when stepping through the debugger.  Only shows likely
UTF-8 or similar formatted text, but often names or error messages are.
This commit is contained in:
Unknown W. Brackets committed 2021-04-21 23:50:59 -07:00
1 parent fd2aecdbc2
commit 012d47bcbf
4 files changed
+43

No files matched your search

@@ -188,6 +188,10 @@ void WebSocketDisasmState::WriteDisasmLine(JsonWriter &json, const DisassemblyLi
json.writeUint("uintValue", Memory::ReadUnchecked_U32(l.info.relevantAddress));
else
json.writeNull("uintValue");
if (IsLikelyStringAt(l.info.relevantAddress))
json.writeString("stringValue", Memory::GetCharPointer(l.info.relevantAddress));
else
json.writeNull("stringValue");
json.pop();
} else {
json.writeNull("relevantData");