> Perhaps this is what you want, dump > [https://nim-lang.org/docs/future.html#dump.m,typed](https://nim-lang.org/docs/future.html#dump.m,typed)
dump does not work at all and in fact the documentation is misleading: as it would appear in source code is not true: dump(1+1) prints 2 = 2 instead of 1 + 1 = 2 which is exactly the issue I'm trying to address in this thread. Also even if it did work, I'd like to get a string (eg for further processing) instead of dumping to stdout which is less flexible > Also look this tutorial to achieve what you want, > [https://nim-lang.org/docs/tut2.html#macros-expression-macros](https://nim-lang.org/docs/tut2.html#macros-expression-macros) I know about that, but this also uses toStrLit(x) and has the exact same issue. So looks like Nim doesn't support what I'm looking for. Could this be added? It's a useful addition for debugging / logging.
