473,396 Members | 1,804 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Cannot use Debug.Assert

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.
Nov 21 '05 #1
4 2064
Michi Henning wrote:
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/produc...k/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.
Nov 21 '05 #2
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
fg*************@yahoo.com

"Michi Henning" wrote:
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.

Nov 21 '05 #3
* Michi Henning <mi***@zeroc.com> scripsit:
Is there anywhere I can report bugs in VB 2003?


<URL:http://register.microsoft.com/mswish/suggestion.asp>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #4
Herfried K. Wagner [MVP] wrote:
* Michi Henning <mi***@zeroc.com> scripsit:
Is there anywhere I can report bugs in VB 2003?

<URL:http://register.microsoft.com/mswish/suggestion.asp>


Thanks muchly for that!

Cheers,

Michi.
Nov 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: baustin75 | last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 -------------------------------------------------------------------------------- ...
4
by: emma middlebrook | last post by:
I have a question regarding asserting ... here's some code: string GetAssertMessage() { ... prepare a message string and return it... } void SomeMethod() { ...
2
by: cody | last post by:
System.Diagnostics.Debug.Assert(); Hello??? A language should encourage programmers to heavily use the assert-feature, since it improves safety, stability, readability and maintainability of...
7
by: Srinivasa Rao | last post by:
I have read in one article that when we compile the application in release mode, all the debug classes and properties will be automatically removed from the code. I tried to implement this thing by...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.