How to link Debug version of libc++

I want to enable assert in stanard library (such as index check in std::vector), and I defined _LIBCPP_DEBUG=1(https://libcxx.llvm.org/docs/DesignDocs/DebugMode.html#using-debug-mode) to enable debug mode of libc++, but found no debug functions in libc++ system provided. So How can I enable debug mode or where can I get the debug lib of libc++

Replies

Unfortunately, there is no answer here.

I try to reactivate an equivalent old thread in StackOverflow: https://stackoverflow.com/questions/49508069/how-to-uselink-debug-version-of-libc-in-osx/59125413#59125413