Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set Step on
Message
De
28/09/2006 08:40:19
John Baird
Coatesville, Pennsylvanie, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01157452
Message ID:
01157811
Vues:
20
>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......
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform