How to add a watch using lldb debugger, for 2D array view
Posted: Thu Aug 07, 2014 5:26 pm
I'm using a Mac, and it seems as though Macs no longer use gdb for debugging (?) Codelite can use the lldb debugger which Macs now use. I cannot see how to add a watch as I'm using lldb as the debugger.
I'm trying to view the contents of a 2 dimensional array. In my sample code I'm creating this array with pointers and 'new'. I'll also be creating arrays with malloc() in c style too.
I think Codelite will show me the contents of a 1-D array, and a 2-D array created like...
double array[5][10];
But if my array starts as
double **myarray
I'm not sure Codelite is showing me the entire contents of the matrix.
So, I have two concerns:
- how do I add a watch, using lldb, also - can I edit a watch in the debugger window?
- how do I view contents of a 2 D array that's created with 'new' or malloc()
I haven't tried this with malloc() yet, so I'll try to view a 2D array created with malloc()
Thanks for any help
I'm trying to view the contents of a 2 dimensional array. In my sample code I'm creating this array with pointers and 'new'. I'll also be creating arrays with malloc() in c style too.
I think Codelite will show me the contents of a 1-D array, and a 2-D array created like...
double array[5][10];
But if my array starts as
double **myarray
I'm not sure Codelite is showing me the entire contents of the matrix.
So, I have two concerns:
- how do I add a watch, using lldb, also - can I edit a watch in the debugger window?
- how do I view contents of a 2 D array that's created with 'new' or malloc()
I haven't tried this with malloc() yet, so I'll try to view a 2D array created with malloc()
Thanks for any help