How to access IloIntArray elements while in Visual Studio debugger?
<p>Hi StackOverFlow fellows,</p>

<p>I'm solving MILP models in C++ with CPLEX via the Concert Technology library which encodes variable and parameter arrays respectively into <code>IloVarArray</code> and <code>IloArray</code> objects. I have already read the numerous questions on how to access ordinary arrays on Visual Studio in debugger mode.</p>

<p>However, querying for <code>array,i-1</code>, on the <em>Immediate Window</em>, if you want to access the value stored on the <code>i-th</code> position of an <code>IloIntArray array</code> is not very useful as you get a highly informational message:</p>

<pre><code>IloArray&lt;__int64&gt;: {_impl=0x0000028c514ad968 {_max=4 _sizeof=8 _size=3 ...} }
</code></pre>

<p>Which, as you can see contains a single useful piece of information, the array size e.g. <code>array</code> contains three elements on its first dimension, as it might contain several. It doesn't even prompts an error if trying to index beyond the array bounds!</p>

<p>But you don't get to access the values in the array unless you include a great deal of <code>cout</code> instructions, and potentially a bunch of <code>for</code> loops, as well as rebuilding your project a million times which is extremely time-consuming even in moderate size models.</p>

<p>So, can we actually access an <code>IloArray</code> element while on debugger without much hassle, or is <code>cout</code> my only available option?</p>