Cannot use Debug.Assert

  • Thread starter Thread starter Michi Henning
  • Start date Start date
M

Michi Henning

When I write

System.Diagnostics.Debug.Assert(False)

the VB.NET compiler complains:

'Debug' is not a member of 'Diagnostics'.

However, the object browser shows the Debug class inside
Diagnostics just fine, and shows the Assert methods inside Debug.

I've tried playing around with Imports statements to work around
this, but to no avail.

Anyone know of a work-around?

Thanks,

Michi.
 
Michi said:
When I write

System.Diagnostics.Debug.Assert(False)

the VB.NET compiler complains:

'Debug' is not a member of 'Diagnostics'.

However, the object browser shows the Debug class inside
Diagnostics just fine, and shows the Assert methods inside Debug.

I tried to report this bug, using
http://lab.msdn.microsoft.com/productfeedback/default.aspx

When filling in the bug report form, I cannot nominate VB 2003
as the target of the bug report, only the Community Technology
Preview May 2004, VB 2005 Express Beta 1, and Visual Studio 2005
Beta 1.

Is there anywhere I can report bugs in VB 2003?

Thanks,

Michi.
 
Michi,

I know this isn't much help, but I tried it with VS.NET 2002 and it worked
fine. Try creating an instance of the Debug class instead.

-Fabricio
(e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top