Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set Step on
Message
From
28/09/2006 08:40:19
John Baird
Coatesville, Pennsylvania, United States
 
General information
Forum:
ASP.NET
Category:
Other
Title:
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01157452
Message ID:
01157811
Views:
19
>Hi John, could you expand on your answer please ?, I have never used asserts in C#, thanks



Goto debug/exceptions on the menu and turn on Common Runtime Language Exceptions --


using System.Diagnostics

inside your code:

Trace.Assert(false) or Debug.Assert(false)

then run your program... it will present a display saying "blah blah blah.... abort, retry, igone" - choose retry and then go to your code... the line will be stopped on the assert and you can continue debugging from there......
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform