<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/13423" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2007-04-27T13:37:30-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/13423</id>

		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-04-27T13:37:30-04:00</updated>

		<published>2007-04-27T13:37:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72299#p72299</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72299#p72299"/>
		<title type="html"><![CDATA[bot crashing wtf]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72299#p72299"><![CDATA[
.debug is only used to track down memleaks and such in the core application (and modules); and is pretty useless for debugging tcl-scripts. And since your bot (precompiled windrop?) was compiled without debugging symbols, .debug really does'nt provide much more info than that.<br><br>If you're trying to debug a tcl-script, considder implementing the bgerror reporting mechanism, as it will allow you to trigger code whenever an unhandled (script)error occurs and allows you to gather extensive information at the moment of the error (contrary to the ".set errorInfo" method that is improperly used/recommended by many ppl on this forum).<br><br>This example should demonstrate the proper use of the errorInfo and errorCode variables:<div class="codebox"><p>Code: </p><pre><code>proc bgerror {message} { putloglev d * "bgError: \"$message\":" foreach line [split $::errorInfo "\n"] {  putloglev d * "  $line" } putloglev d * "bgError: errorCode: $::errorCode"}</code></pre></div>Edit: Oh, might also wanna check the first link posted by rosc as it gives a good example of using errorCode and errorInfo with inline debugging (using catch)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Fri Apr 27, 2007 1:37 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2007-04-27T13:23:53-04:00</updated>

		<published>2007-04-27T13:23:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72298#p72298</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72298#p72298"/>
		<title type="html"><![CDATA[bot crashing wtf]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72298#p72298"><![CDATA[
Read here about how to load scripts without them crashing the bot:<br><a href="http://forum.egghelp.org/viewtopic.php?p=63899#63899" class="postlink">http://forum.egghelp.org/viewtopic.php?p=63899#63899</a><br><br>And read here about how to use .set errorInfo to get meaningful debug output:  <a href="http://forum.egghelp.org/viewtopic.php?t=10215" class="postlink">http://forum.egghelp.org/viewtopic.php?t=10215</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Fri Apr 27, 2007 1:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[BadAssWright]]></name></author>
		<updated>2007-04-27T13:01:19-04:00</updated>

		<published>2007-04-27T13:01:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72296#p72296</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72296#p72296"/>
		<title type="html"><![CDATA[bot crashing wtf]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72296#p72296"><![CDATA[
Well i have my debug script and i been trying to use .debug in dcc chat but this is all i get<br><br><br>[10:01:35] &lt;BaW&gt; .debug memory<br>[10:01:35] &lt;BotServ&gt; [12:00] #BaW# debug<br>[10:01:35] &lt;BotServ&gt; Compiled without extensive memory debugging (sorry).<br>[10:01:35] &lt;BotServ&gt; Open sockets: 3 (listen), 4 (passed on), 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 58, done.<br><br>I dont understand it should have alot more detail in that right?<br><br><br>Also this is my debug report i been looking at the script and still nothing right now <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><br><br><br><br><br>Debug (eggdrop v1.6.18) written Fri Apr 13 18:24:26 2007<br>Full Patch List: <br>Tcl library: /usr/local/lib/tcl8.4<br>Tcl version: 8.4.13 (header version 8.4.13)<br>Compile flags: gcc -pipe -mwin32 -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H  <br>Link flags: gcc -pipe -mwin32<br>Strip flags: strip<br>Context: tclhash.c/684, [Tcl proc: *raw:PRIVMSG, param:  $_raw1 $_raw2 $_raw3]<br>         tclhash.c/695, []<br>         tclhash.c/680, []<br>         tclhash.c/684, [Tcl proc: *raw:<a href="irc:mode" class="postlink">irc:mode</a>, param:  $_raw1 $_raw2 $_raw3]<br>         tclhash.c/680, []<br>         tclhash.c/684, [Tcl proc: cl_mode, param:  $_kick1 $_kick2 $_kick3 $_kick4 $_kick5 $_kick6]<br>         tclhash.c/695, []<br>         tclhash.c/680, []<br>         tclhash.c/684, [Tcl proc: deopreport, param:  $_kick1 $_kick2 $_kick3 $_kick4 $_kick5 $_kick6]<br>         tclhash.c/680, []<br>         tclhash.c/684, [Tcl proc: bs_part, param:  $_p1 $_p2 $_p3 $_p4 $_p5]<br>         tclhash.c/695, []<br>         tclhash.c/680, []<br>         tclhash.c/684, [Tcl proc: ban:jp, param:  $_p1 $_p2 $_p3 $_p4 $_p5]<br>         tclhash.c/695, []<br>         tclhash.c/695 []<br><br>SOCK ADDR     PORT  NICK      HOST              TYPE<br>---- -------- ----- --------- ----------------- ----<br>3    4B7E73A3  6521 (telnet)  *                 lstn  6521<br>4    00000000     0 (dns)                       dns   (ready)<br>5    4B7E73A3  6000 BotServ   PRIAVTE           bot   flags: pucosgwliA<br>6    4296DB05  6667 (server)  PRIVATE           serv  (lag: 0)<br><br>Compiled without extensive memory debugging (sorry).<br>Open sockets: 3 (listen), 4 (passed on), 5, 6 (inbuf: 0054), 7 (file), done.<br><br><br><br>I know you guys wnat to look at my code but its really to big to put on here, over 400kb<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6598">BadAssWright</a> — Fri Apr 27, 2007 1:01 pm</p><hr />
]]></content>
	</entry>
	</feed>
