John Baird
Coatesville, Pennsylvania, 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
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only