VS 2010 Beta1 "No historical data was collected"

I am trying to use the historical debugger in VS2010 Beta 1.

I turned it on in the settings (at least I think I know), but when I try to examine objects, this value:

[No historical data was collected]

Any ideas how to get this to show the actual value?

Here is the code in question:

 public partial class Form1 : Form

   {

       public Form1()

       {InitializeComponent();}

       private void button1_Click(object sender, EventArgs e)

       {

           int numer = Int32.Parse(txtNumerator.Text) ;

           int denom = Int32.Parse(txtDemoninator.Text);

           float answer = DivideValues(numer, denom);

           txtAnswer.Text = answer.ToString();

       }

       private static float DivideValues(int numer, int denom)

       {

           float answer = numer / denom;

           return answer;

       }

   }

      

0


a source to share


1 answer


To get it to work correctly, you need to use the tree view in the debug history window. The navigation arrows in the gutter seem more like a distraction than a help, as it allows you to get into areas that are not recorded.



Also, local variables are not written. This is by design.

0


a source







All Articles