News for hackers. Stuff that matters.
Re:Debugging the C++ standard library on macOS by chrisjj on Thursday August 03, 2023 @07:20PM (#36993404)
> Debugging the C++ standard library on macOS

Some mistake. The article contains nothing on this subject.

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.

Re:Debugging the C++ standard library on macOS by vore on Thursday August 03, 2023 @09:21PM (#36994265)
Did we read the same article?
Re:Debugging the C++ standard library on macOS by chrisjj on Friday August 04, 2023 @02:40PM (#37004033)
> did you even read the article?

Yup. No offence taken.

> What part of the article is not about C++ and macOS?

None of it.

What part /is/ about debugging that?

Again, none of it.

Re:Debugging the C++ standard library on macOS by infamouscow on Friday August 04, 2023 @05:22PM (#37006078)
> Finally, we can break on insert_or_assign as expected and start exploring areas of interest within the standard library

Did you miss this part?

Re:Debugging the C++ standard library on macOS by chrisjj on Friday August 04, 2023 @06:38PM (#37006828)
* * *
Re:Debugging the C++ standard library on macOS by infamouscow on Friday August 04, 2023 @08:24PM (#37007629)
If you insist on being so pedantic, what makes you so sure the breakpoint isn't an error?
Re:Debugging the C++ standard library on macOS by chrisjj on Saturday August 05, 2023 @04:13AM (#37010042)
Nothing. But that's immaterial, given the issue is the content of the article not the content of the code.

But what do think /is/ the meaning of "debugging" here, if not the common-usage one seen in the dictionary?

Re:Debugging the C++ standard library on macOS by TheRealSteel on Friday August 04, 2023 @12:47AM (#36995593)
What is it about, then?