Feedgarden

Browse

C++26: The New Debugging Header

https://www.sandordargo.com/blog/2026/09/30/cpp26-debugging

HN discussion

Based on 9 selected comments and replies.

Commenters debated both the design of the proposed breakpoint facility and the article's provenance. amluto argues that the rationale for emitting a single x86 INT3 is flawed, because int3 is a trap and many debuggers use the saved address pointing to the next instruction, so the apparent stop lands after the breakpoint. tux3 counters that this should rarely happen inside a C++ function and calls it a fixable debugger usability issue rather than a reason to insert NOPs. singron cites a Pangram assessment that the last two-thirds of the post are AI-generated, while Maxatar says it is well established that the blog is LLM-generated and that the cpp subreddit recently banned it. Separately, 1over137 wants the C and C++ standards committees to survey open-source practice before standardizing platform-specific behavior, and eklitzke says that in the rare cases he needs this he writes raise(SIGTRAP), which is portable across Unixes.

Selected comments: amluto · tux3 · singron · Maxatar · 1over137 · eklitzke

Read the full HN discussion

Search this site

The index loads when search opens.

    On this page

    Image