Cannot Evaluate Expression
<p>I have a method which got 6577 lines of code names getdata() without any parameters, this method is being called from Page_load event, before entering in this method my debugger works fine i.e. I can add watch string variables, DataTable etc.</p>

<p>But when I step into getdata() method I am unable to add watch DataTables but still able to add watch other variables like string, int etc.</p>

<p>When I try to Add watch DataTable I get the following error</p>

<p>"Cannot evaluate expression because a thread is stopped at a point where garbage collection is impossible, possibly because the code is optimized"</p>

<p>I searched on Internet and found that this might be due to Method Signature being too long. But in my case there are no Parameters.</p>

<p>What interesting is that if I comment 6000 lines in this method than I'm able to Add watch DataTables.</p>

<p>Please help</p>