none
How can I see the values if I set a breakpoint in VS2012 RRS feed

  • Question

  • Hi..

    I want to see the actual values of my Metro App.

    I could set breakpoint while Debugging in Visual Studio 2012, but how could I see (all) actual values of my variables???

    Thanks für help..

    Andi

    Wednesday, August 8, 2012 8:57 AM

Answers

    • In your code, set up a breakpoint (by clicking on the margin of the code Editor, at the line you want the breakpoint).
    • Start your code. It will stop when reaching the breakpoint
    • Select the name of a variable in your code
    • Right-click the name of the variable
    • Choose "Add watch"
    • This will ad a line in the "Watch window", where you will see its value
    • Marked as answer by afroDeluXe Monday, August 13, 2012 7:22 AM
    Thursday, August 9, 2012 12:51 PM

All replies

  • The debbuger allows you to see values by :

    • hovering with the mouse over a variable
    • adding a watch for a specific variable. I prefer this method, as all chosen variables appear in a list
    Wednesday, August 8, 2012 2:32 PM
  • Thanks.. the hovering I found out, too :)

    But what did you mean with "adding a watch for a specific variable" ?

    Thursday, August 9, 2012 6:31 AM
    • In your code, set up a breakpoint (by clicking on the margin of the code Editor, at the line you want the breakpoint).
    • Start your code. It will stop when reaching the breakpoint
    • Select the name of a variable in your code
    • Right-click the name of the variable
    • Choose "Add watch"
    • This will ad a line in the "Watch window", where you will see its value
    • Marked as answer by afroDeluXe Monday, August 13, 2012 7:22 AM
    Thursday, August 9, 2012 12:51 PM