TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Debugging the C++ standard library on macOS (2022)

50 点作者 japrozs将近 2 年前

4 条评论

gumby将近 2 年前
I love that the author dives right in to learn C++ and I endorse their enthusiasm.<p>However I am not sure reading the standard library sources is a great way to learn early on. Those sources have a lot of speciality code, and weird head-standing in order to handle various obscure corner cases, different architectures and the like. And it’s so great they do!<p>When you’re still learning C++ all that extra care will probably add to the learner’s confusion rather than reduce it.<p>And in fact, very few people need to write code like that. When they do, they will often resort to obscure corners of the C++ standard which were added for library writers (hence the common response to a new standard, “why did the committee waste time on an obscure feature like that?”).<p>Also these libraries typically rely on compiler-specific features that may not even be documented.<p>I don’t mean to discourage anyone from reading the library sources! But perhaps they are not the best place to start.
评论 #36995191 未加载
jviotti将近 2 年前
Author here. Thanks for sharing! I have small collection of other Apple-related deep-dive articles that you might find interesting too, like:<p>- <a href="https:&#x2F;&#x2F;www.jviotti.com&#x2F;2021&#x2F;07&#x2F;23&#x2F;a-deep-dive-on-macos-universal-binaries.html" rel="nofollow noreferrer">https:&#x2F;&#x2F;www.jviotti.com&#x2F;2021&#x2F;07&#x2F;23&#x2F;a-deep-dive-on-macos-univ...</a><p>- <a href="https:&#x2F;&#x2F;www.jviotti.com&#x2F;2022&#x2F;02&#x2F;21&#x2F;emitting-signposts-to-instruments-on-macos-using-cpp.html" rel="nofollow noreferrer">https:&#x2F;&#x2F;www.jviotti.com&#x2F;2022&#x2F;02&#x2F;21&#x2F;emitting-signposts-to-ins...</a><p>- <a href="https:&#x2F;&#x2F;www.jviotti.com&#x2F;2022&#x2F;11&#x2F;28&#x2F;launching-macos-applications-from-the-command-line.html" rel="nofollow noreferrer">https:&#x2F;&#x2F;www.jviotti.com&#x2F;2022&#x2F;11&#x2F;28&#x2F;launching-macos-applicati...</a><p>- <a href="https:&#x2F;&#x2F;www.jviotti.com&#x2F;2022&#x2F;02&#x2F;24&#x2F;attaching-lldb-to-production-electron-builds-on-macos.html" rel="nofollow noreferrer">https:&#x2F;&#x2F;www.jviotti.com&#x2F;2022&#x2F;02&#x2F;24&#x2F;attaching-lldb-to-product...</a>
saagarjha将近 2 年前
Of course, LLDB is more likely than not to be useless when debugging complex templated code from the standard library :(
评论 #36992698 未加载
chrisjj将近 2 年前
&gt; Debugging the C++ standard library on macOS<p>Some mistake. The article contains nothing on this subject.
评论 #36993965 未加载
评论 #36995593 未加载
评论 #36994265 未加载