blt::bltdebug(3tcl)

✨ NAME ✨

bltdebug β€” bestie, it prints your Tcl commands before they even run πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

bltdebug ?level?

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so bltdebug is literally the simplest little tracing facility for Tcl commands, and she is that girl for when you're like "wait what is even happening in here" πŸ”βœ¨

Every command line gets printed before it's executed, and it goes to standard error β€” not stdout, bestie, keep your actual output clean 🌸

The output is giving ✨ both ✨ β€” you get the command line before substitutions have occurred and after substitutions have occurred. So you can see what you typed and what Tcl turned it into. Obsessed, honestly 😭

  • level β€” this tells it at what level to stop tracing commands.
    • If level is 0, no tracing is performed at all. And yes, that's the default β€” she's off until you ask, no cap πŸ™ˆ
    • If you don't give a level argument at all? Then the current level is printed instead. Just a lil vibe check on where you're at πŸ‘‘
ngl, level is the whole entire personality of this command. Set it, or don't β€” but know that 0 means silence and no argument means "tell me where I'm at" 🫢

πŸ‘‘ KEYWORDS πŸ‘‘

debug


that's the whole page, bestie β€” go trace some commands and slay πŸ’–

🌸 this one's from the BLT Built-In Commands manual, BLT version 2.5, filed under blt::bltdebug(3tcl) β€” mwah, periodt πŸ’…πŸŽ€

πŸ“¦ where this page comes from