Is there something else I could be using, something that is allowed to violate the checking rules for purity, nothrow, @nogc? Would pragma( msg, "…" ) do the trick? Is that what I should be using?
Debugging by old fashioned trace log printfs / writefln
Cecil Ward via Digitalmars-d-learn Thu, 29 Jun 2023 11:31:59 -0700
I’m trying to debug my D program with old-fashioned printfs stuck
in various strategic places, actually using writefln(). My
problem is that the addition of printf fights with the existing
declarations for pure nothrow @nogc @safe and I have to adjust
them, then put them back correctly when the writefln() trace
statements are later removed.
- Debugging by old... Cecil Ward via Digitalmars-d-learn
- Re: Debuggi... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
- Re: Deb... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
- Re: Debuggi... Chris Katko via Digitalmars-d-learn
- Re: Deb... Cecil Ward via Digitalmars-d-learn
- Re:... H. S. Teoh via Digitalmars-d-learn
- Re: Debuggi... Jonathan M Davis via Digitalmars-d-learn