debug_info.html

final_realms_fluffos_v1/lib/doc/man/html/efuns/internals/debug_info.html · 2.2 KB

From the archive final_realms_fluffos_v1.zip

Download the archive   « Back to the archive contents

<HEAD> <TITLE> debug_info - display debug information </TITLE> </HEAD> <BODY BACKGROUND=http://www.imaginary.com/~beek/gifs/bg.jpg TEXT=#000000 ALINK=#FFFF00 VLINK=#550000 LINK=#000099> <center> <H1> debug_info - display debug information </H1> </center>
<p>
<b> string debug_info( int operation, ... ); </b>
<p>
<b> string debug_info( 0, object ob ); </b>
<p>
<b> string debug_info( 1, object ob ); </b>
<p>
<b> string debug_info( 2, object ob ); </b>
<p>
This efun is only available if PACKAGE_DEVELOP is compiled into the driver.
<p>
debug_info() is a general-purpose facility which may be used to debug the
MudOS driver.  The debugging information requested is determined by the
first argument.  Successive arguments are determine by the operation selected.
<p>
The existing operations (0 , 1 and 2) require a second object type argument,
and may be used to display the various fields of the MudOS object structure.
<p>
The following LPC code was used to generate the sample output:
<p>
<pre>
<p>
create() {
    write(debug_info(0, this_object()));
}
</pre>
<p>
gives:
<p>
<pre>
O_HEART_BEAT      : FALSE
O_IS_WIZARD       : FALSE
O_ENABLE_COMMANDS : FALSE
O_CLONE           : FALSE
O_DESTRUCTED      : FALSE
O_SWAPPED         : FALSE
O_ONCE_INTERACTIVE: FALSE
O_RESET_STATE     : FALSE
O_WILL_CLEAN_UP   : FALSE
O_WILL_RESET: TRUE
total light : 0
next_reset  : 720300560
time_of_ref : 720299416
ref         : 2
swap_num    : -1
name        : 'u/c/cynosure/di0'
next_all    : OBJ(bin/dev/_update)
This object is the head of the object list.
</pre>
<p>
<hr>
<p>
<pre>
<p>
create() {
    write(debug_info(1, this_object()));
}
</pre>
<p>
gives:
<p>
<pre>
program ref's 1
Name u/c/cynosure/di1.c
program size 10
num func's 1 (16) 
num strings 0
num vars 0 (0)
num inherits 0 (0)
total size 104
</pre>
<p>
<hr>
<p>
<pre>
<p>
create() {
    write(debug_info(2, this_object()));
}
</pre>
<p>
 gives:
<p>
<pre>
x: "foo"
</pre>
<p>
See also:
<A HREF=dump_file_descriptors.html>  dump_file_descriptors </A>,
<A HREF=dump_socket_status.html>  dump_socket_status </A>
<p>
<HR> <ADDRESS> <A HREF=http://wagner.princeton.edu/~tim>  Tim Hollebeek </A> <p> <A HREF="http://www.imaginary.com/~beek/">  Beek </A>@ZorkMUD, Lima Bean, IdeaExchange, TMI-2, and elsewhere </ADDRESS>

Site Stats

Snippets: 1791
Codebases: 571