You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there something I need to do to be able to interactively query the state of the json objects while debugging in lldb? For example, this sample program produces output as expected
#include "json.h"
int main(int argc, char **argv)
{
json j;
j["a"] = 1;
j["b"] = "foo";
j["c"] = 3;
for (json::const_iterator element = j.begin(); element != j.end(); ++element) {
std::cout << element.key() << ": " << element.value() << std::endl;
}
}
but if I set a breakpoint on the "cout" line, attempting print the value of element.key() produces the error:
I'm currently compiling with -O0 and and -g, but I've also tried all combinations of -fno-inline -mllvm -inline-threshold=1, as well as explicitly instantiating the template with:
template class nlohmann::basic_json<
std::__1::map,
std::__1::vector,
std::__1::basic_string< char, std::__1::char_traits< char >, std::__1::allocator< char > >,
bool,
long long,
unsigned long long,
double,
std::__1::allocator,
nlohmann::adl_serializer >;
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
stalebot
added
the
state: stale
the issue has not been updated in a while and will be closed automatically soon unless it is updated
label
Oct 9, 2019
Is there something I need to do to be able to interactively query the state of the json objects while debugging in lldb? For example, this sample program produces output as expected
#include "json.h"
but if I set a breakpoint on the "cout" line, attempting print the value of element.key() produces the error:
I'm currently compiling with -O0 and and -g, but I've also tried all combinations of
-fno-inline -mllvm -inline-threshold=1
, as well as explicitly instantiating the template with:The text was updated successfully, but these errors were encountered: