nholthaus / units

a compile-time, header-only, dimensional analysis and unit conversion library built on c++14 with no dependencies.
http://nholthaus.github.io/units/
MIT License
938 stars 134 forks source link

LLDB type summaries for units classes #279

Open gyrovague opened 2 years ago

gyrovague commented 2 years ago

Has anybody tried making type summaries for units classes, so that the values of units variables can be easily displayed during debugging?

e.g. see: https://lldb.llvm.org/use/variable.html#type-summary https://pspdfkit.com/blog/2018/how-to-extend-lldb-to-provide-a-better-debugging-experience/

nholthaus commented 2 years ago

No. I tried a .natvis file once but never really took it anywhere. I think summaries would be a useful addition and I'd certainly take a PR for it.

On Fri, Aug 13, 2021, 4:47 AM gyrovague @.***> wrote:

Has anybody tried making type summaries for units classes, so that the values of units variables can be easily displayed during debugging?

e.g. see: https://lldb.llvm.org/use/variable.html#type-summary

https://pspdfkit.com/blog/2018/how-to-extend-lldb-to-provide-a-better-debugging-experience/

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/nholthaus/units/issues/279, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACOYOH4BNXHWMLCAIOZ3EJ3T4TL2TANCNFSM5CDE27SQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .