Sign in Join
Wiki copytemporary

DebugLn

DebugLn is a LazLogger procedure that can assist debugging.

In your main program use code like:

pascal
program main;
uses
{$ifdef DEBUG}
  LazLogger;
{$end}

...

end.

In units where you need debugln-style debugging:

pascal
uses
{$ifdef DEBUG}
  LazLoggerBase;
{$else}
  LazLoggerDummy;
{$end}

procedure dosomething();
var
  s: string;
begin
...
  debugln( s );
...
end;

Syntax of debugln is comparable to writeln syntax.


From the Free Pascal wiki, page "DebugLn", as it stood on 2022-05-28 after a change by Trev, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.

Revision 1, last changed by WikiArchive .

Talk about this page

Nobody has opened a bench for this page yet. Sign in to open one.