Message
From
28/09/2006 08:40:19
John Baird
Coatesville, Pensilvânia, United States
 
General information
Fórum:
ASP.NET
Category:
Título:
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
ID da thread:
01157452
ID da mensagem:
01157811
Views:
21
>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
Responder
Mapa
View