Saturday, 15 March 2014

Eclipse-C++-Debugging: see content of an Array -


Is it possible to see the contents of the array allocated dynamically, such as:

  Int * Array = new int [dimension];  

I only see the value of the pointer.

Edit: Just got the option "displayed in the array", but I have to manually enter the size of the shape array is it possible to get it automatically? In the eclipse, to view the contents of a dynamic allocated array (

Make sure that you are in a debugging perspective.
  • Right click on the ARA variable
  • Click display as an array
  • If you do not see it, then click "window"> "Show view"> "variable".
  • Eclipse does not know how big your array is, so for the start index A type 0 and length number of elements dynamically allocated.

  • No comments:

    Post a Comment