Hi, I am looking for a function like AfxMessageBox, but will only available in Debug Version, to display some error messages. I have thought of TRACE, but it will only dump the error message in the output box, not pop up a messagebox to pause the execution of the program. Does Visual C++ provide such a function?