News for hackers. Stuff that matters.
Re:Debugging the C++ standard library on macOS by bastawhiz on Thursday August 03, 2023 @08:36PM (#36993965)
What part of this isn't about debugging the C++ stdlib on macOS? It talks about the special version of clang in Xcode. It has macOS-specific options. It gets into the details of doing this with Mach-O files. Almost no parts of this post isn't about the c++ stdlib and essentially all of it is specific to macOS.
Re:Debugging the C++ standard library on macOS by pipo234 on Friday August 04, 2023 @03:24AM (#36996586)
I guess what chrisjj might have meant is that "debugging" usually starts with a bug, a or symptom. So in case of debugging the standard library, it usually is a problem in your own code that you cannot explain and try to blame on an error of the subsystem. In those cases, having access to a source-level debugger can be useful but in my experience this the subsystem is usually not where you'll find the error; more often it's in your own code.

So in case of this article, ask: what is the symptom of an alleged bug in the standard library that the author is trying to uncover?

This article is more about using the online debugger to explore parts of the standard library. Which is interesting, but as others have pointed out probably not the best way to familiarize yourself with a language or library.

Re:Debugging the C++ standard library on macOS by account42 on Friday August 04, 2023 @06:29AM (#36997943)
> but in my experience this the subsystem is usually not where you'll find the error; more often it's in your own code

More often perhaps, but compilers and their standard libraries are complex pieces of software written by human beings - and it's not that uncommon to encounter them, especially if you go a bit off the beaten path or are an early adopter.

Re:Debugging the C++ standard library on macOS by pipo234 on Friday August 04, 2023 @10:05AM (#37000256)
Sure, that happens too. And it would be interesting to read an article about that; but that is not what this article is about despite its title :-)
Re:Debugging the C++ standard library on macOS by chrisjj on Friday August 04, 2023 @02:36PM (#37003978)
> Almost no parts of this post isn't about the c++ stdlib and essentially all of it is specific to macOS.

True. But notice the word Debugging is missing there.