I am using Xcode on macOS Catalina which comes with lldb. I tried to print out an Armadillo matrix following the stack overflow post Is there a way to print an Armadillo matrix in gdb?, but I got the error:
error: 'print_matrix' does not name a template but is followed by template arguments
non-template declaration found by name lookup
I'm new to C++ so I'm not sure whether the error is due to the difference between gdb and lldb or due to current version of Armadillo using different data structure. (The cited post is from 8 years ago, so maybe how Armadillo works has changed since then).
I will appreciate any fix to this error or suggestion of alternative ways to print out Armadillo matrix during debugging.