Skip to content

Commit 570acd0

Browse files
committed
debug: verbose JSON
1 parent 1446d79 commit 570acd0

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/REX/REX/JSON.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,12 @@ namespace REX::JSON
2121
a_value = glz::get<T>(json, a_path).value_or(a_valueDefault);
2222
} else {
2323
auto path = std::format("/{}"sv, a_path);
24-
a_value = glz::get<T>(json, path).value_or(a_valueDefault);
24+
REX::DEBUG("reading from {}", path);
25+
auto value = glz::get<T>(json, path);
26+
REX::DEBUG("found: {}", value.has_value());
27+
REX::DEBUG("test output1: {}", value->get());
28+
REX::DEBUG("test output2: {}", value.value_or(a_valueDefault).get());
29+
a_value = value.value_or(a_valueDefault);
2530
}
2631
}
2732

0 commit comments

Comments
 (0)