0

I'm using jsoncpp library in my cpp project on eclipse IDE, and I'm using a lot of Json::Value objects in my application. When debugging my program, I can't see the real content of the Json::Value objects on the watch window, I can only see some info on the object (such as minInt, maxInt...).

When I put object.toStyledString() in the watch, I can see a part of the real content but not the whole thing.

I know that there's a debug helper for Visual Studio for this, but nothing for eclipse.

Any Idea?

PS: I have an old Eclipse (Kepler), "Max Length" option on the Expressions/Variables windows doesn't work.

howlger
  • 31,050
  • 11
  • 59
  • 99

1 Answers1

0
Json::Value root;
//...

std::string strJson = root.toStyledString();
std::cout << strJson << std::endl;
Allen ZHU
  • 690
  • 5
  • 14
  • yes,but as I mentioned, I'm using a lots fo them, it's very painfull to modify the code in each instance of a Json::Value for debug. – Marwen BEN MBARKA Dec 23 '20 at 13:57
  • This answer could be improved by pointing out how it addresses the problem presented by the asker. – Nathan Dec 23 '20 at 14:02