title: How can I increase the size of the string that an external debugger visualizer can display?
body: <p>I am once again writing an external debugger visualizer, and am running into a wall. There appears to be a limit to the size of the string that the debugger visualizer can return.</p>
  
  <p>The TStrings debugger visualizer that shipped with Delphi 2010 had a limit of 4K. In a response to a question posted on Embarcadero's newsgroups, Ewe Schuster <a href="http://embarcadero.newsgroups.archived.at/public.delphi.ide/200910/0910065447.html" rel="noreferrer">replied</a> that "You can increase the buffer a little bit, but AFAIR the actual limitation is in IOTAThread.Evaluate with a limit of about 12k chars."</p>
  
  <p>My debugger visualizer is based on the code of the TStrings debugger visualizer, and I can see that the implementation of the TFrame's Evaluate method includes the following declaration of ResultStr, which is used to return the string returned from the IOTAThread.Evaluate call:</p>
  
  <pre><code>  ResultStr: array[0..4095] of Char;
  </code></pre>
  
  <p>I had hoped that increasing the size of this buffer would help, but no luck.</p>
  
  <p>What can I do, if anything, to increase the size of the string that my external debugger visualizer can display?</p>