Angband
Functions
debug.h File Reference

Simple debugging functions. More...

Go to the source code of this file.

Functions

void debug (const char *fmt,...)
 Send the formatted string to whatever debug console or output is set up.

Detailed Description

Simple debugging functions.

Copyright (c) 2007 Andi Sidwell

This work is free software; you can redistribute it and/or modify it under the terms of either:

a) the GNU General Public License as published by the Free Software Foundation, version 2, or

b) the "Angband licence": This software may be copied and distributed for educational, research, and not for profit purposes provided that this copyright and statement are included in all such copies. Other copyrights may also apply.

Function Documentation

void debug ( const char *  fmt,
  ... 
)

Send the formatted string to whatever debug console or output is set up.

The output will be treated logically as a single line, so do not include newline characters in the format string.

It is recommended you call debug() with "DHERE" at the beginning of your format string, like so: debug(DHERE "important info");

This gives you file and line number information.

Send the formatted string to whatever debug console or output is set up.

Amongst other things, this should use the message package so that ports can display e.g. a debugging window, or send the output to file.

References buffer, d_out, and vstrnfmt().