John Baird
Coatesville, Pensilvânia, United States
Environment versions
Network:
Windows 2000 Server
>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
Visualizar o mapa desta thread
View the map of this thread starting from this message only
Visualizar todas as mensagens desta thread
Visualizar todas as mensagens desta thread a partir desta mensagem