Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add polyfill for C++26's <debugging> #7420

Open
calcmogul opened this issue Nov 21, 2024 · 0 comments · May be fixed by #7423
Open

Add polyfill for C++26's <debugging> #7420

calcmogul opened this issue Nov 21, 2024 · 0 comments · May be fixed by #7423
Assignees
Labels
build Monorepo organization, gradle/cmake, upstream_utils, etc type: feature Brand new functionality, features, pages, workflows, endpoints, etc.

Comments

@calcmogul
Copy link
Member

calcmogul commented Nov 21, 2024

Per https://en.cppreference.com/w/cpp/header/debugging:

  • std::breakpoint() pauses the running program when called
  • std::breakpoint_if_debugging() calls std::breakpoint() if std::is_debugger_present() returns true
  • std::is_debugger_present() checks whether a program is running under the control of a debugger

Here's a reference implementation from P2546 that we can import: https://github.com/grafikrobot/debugging

@calcmogul calcmogul added build Monorepo organization, gradle/cmake, upstream_utils, etc type: feature Brand new functionality, features, pages, workflows, endpoints, etc. labels Nov 21, 2024
@calcmogul calcmogul self-assigned this Nov 21, 2024
calcmogul added a commit to calcmogul/allwpilib that referenced this issue Nov 22, 2024
calcmogul added a commit to calcmogul/allwpilib that referenced this issue Nov 22, 2024
calcmogul added a commit to calcmogul/allwpilib that referenced this issue Nov 22, 2024
calcmogul added a commit to calcmogul/allwpilib that referenced this issue Nov 22, 2024
calcmogul added a commit to calcmogul/allwpilib that referenced this issue Nov 22, 2024
calcmogul added a commit to calcmogul/allwpilib that referenced this issue Nov 22, 2024
calcmogul added a commit to calcmogul/allwpilib that referenced this issue Nov 22, 2024
calcmogul added a commit to calcmogul/allwpilib that referenced this issue Nov 22, 2024
calcmogul added a commit to calcmogul/allwpilib that referenced this issue Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Monorepo organization, gradle/cmake, upstream_utils, etc type: feature Brand new functionality, features, pages, workflows, endpoints, etc.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant