How to force print the full content, not the one with ellipsis
hhhxiao opened this issue · 3 comments
hhhxiao commented
How can i print all the full content of a variable such as the follows:
[.\xxx.cpp:19 (xxfunction)] tree = {1, 2, 4, 5, 3, 6, -1, -1, -1, -1, -1, -1, -1,size:13} (std::vector<int>)
or not:
[.\xxx.cpp:19 (xxfunction)] tree = {1, 2, 4, 5, 3, 6, -1, -1, -1, -1, ... size:13} (std::vector<int>)
Is there a macro to set it up?
winwinashwin commented
@hhhxiao For printing size of container is clipped. You could either increase the size from 10
to a desirable value or remove the clipping logic altogether forcing to print container entirely although this could lead to a messy output
hhhxiao commented
Thank you very much for your answer, so the current solution is that I have to manually modify the source code
sharkdp commented
As @nocoinman said, this is currently not possible. And I don't plan to add a new feature to allow for this, unless someone has a really elegant proposal on how to integrate this.