Command Window/Debugging Session

  • Thread starter Thread starter John Cobb
  • Start date Start date
J

John Cobb

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.Property1 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.Property1" in the command window,
rather than getting the value stored in Property1 I get the following
message: "MyNameSpace 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?
 
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.
 
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.
 
Hi John,

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

'place breakpoint on following line
TextBox2.Text = "Prod path is " & MyNameSpace.Module1.FileServerPath
...

In Command Window, please use "? MyNameSpace.Module1.FileServerPath".

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.
 
Back
Top