DEBUGLIB(nged)

Allows the user to set or check the debug flags used by librt.

πŸ“… published 7.44.0, from nixpkgs unstable

πŸ’… DEBUGLIB πŸ’…

okay so real talk, this is a page from the BRL-CAD User Commands manual (the nged crew 🌸) β€” and it's all about one tiny command that lets you peek at or poke the debug flags that librt is using. yes bestie, that librt. πŸ¦‹


✨ NAME ✨

debuglib β€” the little command that sets or checks the debug flags used by librt. that's it. that's the whole vibe. πŸŽ€


⭐ SYNOPSIS ⭐

debuglib [hex_code]

so simple. so iconic. hex_code is optional and it's the only thing you can hand it. πŸ’…


🌈 DESCRIPTION 🌈

okay so here's the tea πŸ“: debuglib lets you set or check the debug flags used by librt.

Run it with zero arguments and it's in full main-character display mode β€” it shows you all the possible settings for the librt debug flag plus the current value. like a little vibe check for your library. ✨

Hand it a hex_code and that value becomes the new value for the flag. no cap, that's literally the whole thing. πŸ”₯

and btw, librt isn't the only library with one of these β€” there are similar debug commands for other BRL-CAD libraries, iykyk:

  • debugbu β€” the debug command for libbu 🧚
  • debugnmg β€” the debug command for the NMG portion of librt πŸ‘‘

πŸŽ€ EXAMPLES πŸŽ€

Example 1. List available debug values for librt and the current value.

this one is the "no argument, just vibes" mode β€” it lists the available debug values for librt and the current value. 🫢

mged>debuglib

Lists available debug values for librt and the current value.


Example 2. Set the librt debug flag to a specific value.

this one actually sets the flag, so it's giving "i make the decisions here" energy πŸ’…

mged>debuglib 1

Sets the librt debug flag to <DEBUG_ALLRAYS> (prints info about rays). 🌸


πŸ’œ AUTHOR πŸ’œ

BRL-CAD Team β€” legends, honestly. πŸ‘‘


πŸ’€ BUG REPORTS πŸ’€

found a bug? a problem? something acting sus? 😭 Reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org β€” they wanna hear it, fr fr. πŸ“


that's the whole page bestie, go forth and debug slay βœ¨πŸ’–

BRL-CAD β€” DEBUGLIB(nged) β€” that's the source/version and page tag right there, mwah πŸŽ€

πŸ“¦ where this page comes from