Hosting and domain costs until October 2024 have been generously sponsored by dumptruck_ds. Thank you!

traceon

From Quake Wiki

Revision as of 18:43, 31 July 2023 by Boondorl (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

void traceon()

Usage

Starts printing the statements the VM is executing to the console. Useful for debugging code to see what exact steps it's taking. Paired with traceoff() to disable statement printing.

Example

// Verify which path the code is executing at a branch
traceon();
if (self.count == 3)
    PerformTask2();
else
    PerformTask();
traceoff();