Thank you for this tip.
The main reason I want to build a debug version is so I can set breakpoints and step through the OpenCV code. That way I can see and understand how OpenCV works better. Also, sometimes OpenCV returns cryptic exceptions and it helps to set a breakpoint where the exception is thrown to understand better what conditions were not met that caused the exception.