Command Window/Debugging Session

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • John Cobb

    #1

    Command Window/Debugging Session

    In a nutshell I have a 1.1 Framework VB Winform app with one form and
    one .vb file. The .vb file is defined with it's own namespace MyNameSpace.
    In form code I can reference properties of MyNameSpace with syntax like
    MyNameSpace.Pro perty1 but hovering the mouse over this property will not
    show the value it contains like is possible with variables in the root
    namespace.
    Further, if I type "? MyNameSpace.Pro perty1" in the command window,
    rather than getting the value stored in Property1 I get the following
    message: "MyNameSpac e is not declared or the module containing it is not
    loaded in the debugging session."
    How do I include the namespace in the debug session so I see it's values?


  • Jacob Yang [MSFT]

    #2
    RE: Command Window/Debugging Session

    Hi John,

    Is it possible for you to send me your testing sample project? That would
    be most helpful in pinpointing the problem and solution. Please just give
    me a simple project to demonstrate the problem. Please also write a
    "readme.txt " for the sample project to tell me how to reproduce the problem
    step by step. I certainly appreciate your time.

    Best regards,

    Jacob Yang
    Microsoft Online Partner Support
    <MCSD>
    Get Secure! ¨C www.microsoft.com/security
    This posting is provided "as is" with no warranties and confers no rights.

    Comment

    • Jacob Yang [MSFT]

      #3
      Re: Command Window/Debugging Session

      Hi John,

      I have reproduced the problem on my side.

      Due to the nature of your issue I need to do additional research to
      determine the best way to provide assistance. I will contact you as soon as
      possible.

      Best regards,

      Jacob Yang
      Microsoft Online Partner Support
      <MCSD>
      Get Secure! ¨C www.microsoft.com/security
      This posting is provided "as is" with no warranties and confers no rights.

      Comment

      • Jacob Yang [MSFT]

        #4
        Re: Command Window/Debugging Session

        Hi John,

        Please use the following code:
        ...
        'load textbox1.text to prove we have access to the namespace
        TextBox1.Text = "Beta path is " & MyNameSpace.Mod ule1.BetaServer Path

        'place breakpoint on following line
        TextBox2.Text = "Prod path is " & MyNameSpace.Mod ule1.FileServer Path
        ...

        In Command Window, please use "? MyNameSpace.Mod ule1.FileServer Path".

        Best regards,

        Jacob Yang
        Microsoft Online Partner Support
        <MCSD>
        Get Secure! ¨C www.microsoft.com/security
        This posting is provided "as is" with no warranties and confers no rights.

        Comment

        Working...