locked
Debugger - local variables RRS feed

  • Question

  • Is it possible to access local variables during debugger session from a VS addon?
    Thursday, August 16, 2012 3:49 AM

Answers

  • Hi,

    I want to know what local variables you want to debug?

    I know a way which I always use it to debug my web page. You can try as:

    • Debug->Attach to Process
    • Choose the process which you want

    Then debug your project. It will show the variables you want.

    Best regards,

    • Marked as answer by Ego Jiang Tuesday, August 28, 2012 7:28 AM
    Friday, August 17, 2012 8:09 AM
  • Using 

    Debugger.GetExpression()

    you can read local variables by their fully qualified names.

    • Marked as answer by Ego Jiang Tuesday, August 28, 2012 7:28 AM
    Friday, August 17, 2012 10:29 AM

All replies

  • Hi,

    I want to know what local variables you want to debug?

    I know a way which I always use it to debug my web page. You can try as:

    • Debug->Attach to Process
    • Choose the process which you want

    Then debug your project. It will show the variables you want.

    Best regards,

    • Marked as answer by Ego Jiang Tuesday, August 28, 2012 7:28 AM
    Friday, August 17, 2012 8:09 AM
  • Using 

    Debugger.GetExpression()

    you can read local variables by their fully qualified names.

    • Marked as answer by Ego Jiang Tuesday, August 28, 2012 7:28 AM
    Friday, August 17, 2012 10:29 AM
  • Hi EliMLi,

    I will mark Adolf and Simon's reply as answers.

    Please unmark them if you feel they are not the answers.

    Thank you for your understanding and support.

    Best regards,


    Ego [MSFT]
    MSDN Community Support | Feedback to us

    Tuesday, August 28, 2012 7:28 AM