ejabberd - Comments for "General Ejabberd Debug Shell Question" https://www.ejabberd.im/node/5959 en nice, worked as well, thanks https://www.ejabberd.im/node/5959#comment-58920 <p>nice, worked as well, thanks</p> Wed, 25 Jul 2012 18:14:20 +0000 truGrok comment 58920 at https://www.ejabberd.im You could simply https://www.ejabberd.im/node/5959#comment-58918 <p>You could simply run</p> <pre><code>mod_test:get_acct({jid,0,0,0,&quot;user&quot;,&quot;localhost.com&quot;,0}).</code></pre><p>as well without anything else.</p> Tue, 24 Jul 2012 21:32:00 +0000 mikekaganski comment 58918 at https://www.ejabberd.im ok I got it, for some reason https://www.ejabberd.im/node/5959#comment-58917 <p>ok I got it, for some reason in the ejabberdctl debug shell, it doesn't load the jid record</p> <p>tried to run:</p> <div class="codeblock"><code>rr(&#039;path/to/jlib.hrl&#039;).</code></div> <p>but for some reason the shell kept saying the path was invalid, so in the end I had to run</p> <div class="codeblock"><code>rd(jid, {user, server, resource,luser, lserver, lresource}).</code></div> <p>then run</p> <div class="codeblock"><code>TestJid = #jid{luser=&quot;user&quot;,lserver=&quot;localhost&quot;}.</code></div> <p>then finally pass 'TestJid' to the function</p> Tue, 24 Jul 2012 15:57:03 +0000 truGrok comment 58917 at https://www.ejabberd.im See Erlang Reference Manual / https://www.ejabberd.im/node/5959#comment-58910 <p>See <noindex><a href="http://www.erlang.org/doc/reference_manual/records.html" rel="nofollow" >Erlang Reference Manual / records</a></noindex>, section 9.8 "Internal Representation of Records".<br /> You try to pass another tuple to the function.</p> Tue, 24 Jul 2012 05:26:06 +0000 mikekaganski comment 58910 at https://www.ejabberd.im