This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

best ide / debugger for eggdrop (tcl)?

Help for those learning Tcl or writing their own scripts.
Post Reply
User avatar
sKy
Op
Posts: 194
Joined: Thu Apr 14, 2005 5:58 pm
Location: Germany

best ide / debugger for eggdrop (tcl)?

Post by sKy »

Which integrated development environment is best for eggdrop? I tested already all ides and debuggers for tcl. But no ide and no debugger integrates well into eggdrop. To develop/debug on remote shell would be awesome, but for a local installed win/eggdrop it would be fine as well.

None of the debuggers worked for eggdrop related things... Just plain tcl.

Any advice?
socketapi | Code less, create more.
User avatar
TCL_no_TK
Owner
Posts: 509
Joined: Fri Aug 25, 2006 7:05 pm
Location: England, Yorkshire

Re: best ide / debugger for eggdrop (tcl)?

Post by TCL_no_TK »

Debug? can you give me more information please. I dont know if this is relivant or not but the debug stuff is available from eggdrop its self. This is an example of the .debug command from eggdrop cvs version.
.debug
[08:21] #Kanon# debug
File 'language.c' accounted for 17915/17915 (ok)
File 'chanprog.c' accounted for 294/294 (ok)
File 'misc.c ' accounted for 84766/84766 (ok)
File 'userrec.c ' accounted for 3712/3712 (ok)
File 'net.c ' accounted for 0/0 (ok)
File 'dccutil.c ' accounted for 21164/21164 (ok)
File 'botnet.c ' accounted for 2200/2200 (ok)
File 'tcl.c ' accounted for 4937/4937 (ok)
File 'tclhash.c ' accounted for 25408/25408 (ok)
File 'tclmisc.c ' accounted for 194/194 (ok)
File 'modules.c ' accounted for 894/894 (ok)
File 'tcldcc.c ' accounted for 12/12 (ok)
File 'dns.c ' accounted for 0/0 (ok)
Module 'wire ' accounted for 0/0 (ok)
Module 'console ' accounted for 0/0 (ok)
Module 'notes ' accounted for 0/0 (ok)
Module 'irc ' accounted for 0/0 (ok)
Module 'ctcp ' accounted for 0/0 (ok)
Module 'server ' accounted for 73/73 (ok)
Module 'channels ' accounted for 30250/30250 (ok)
Module 'dns ' accounted for 48/48 (ok)
Module 'uptime ' accounted for 0/0 (ok)
Module 'encryption' accounted for 12552/12552 (ok)
Module 'eggdrop ' accounted for 0/0 (ok)
--- End of debug memory list.
Open sockets: 3 (listen), 4 (passed on), 7, 12, done.
As for which operating system is best, i would think linux/NIX* type os are supported with debug as windows/cygwin versions use --strip.
User avatar
sKy
Op
Posts: 194
Joined: Thu Apr 14, 2005 5:58 pm
Location: Germany

Post by sKy »

A debugger is a very productive programing tool. After you have code with no syntax errors and maybe some program errors you can walk thought your code. Command for command, you will see how the computer will process.

There are also a lot debuggers for tcl. But all I have tested only work with pure tcl (tclsh). If tcl is embedded as script language in some program (like eggdrop) I don`t know a way to debug. Thats why I posted here.

http://en.wikipedia.org/wiki/Debugger
socketapi | Code less, create more.
User avatar
TCL_no_TK
Owner
Posts: 509
Joined: Fri Aug 25, 2006 7:05 pm
Location: England, Yorkshire

Re: best ide / debugger for eggdrop (tcl)?

Post by TCL_no_TK »

I see. Thank You. :) I really dont think something like this has been developed, the best thing i could recommend is if you want to test these debugers for eggdrop tcl scripts. Write tclsh scripts that will 'mimic' eggdrops built-in tcl commands. You can see a list of them in the docs folder named tcl-commands.doc. Also i guess you could use the .tcl command, as this would probably show everything like that as well .set errorInfo, so there are alternatives' if your willing to compromise.
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

This code by user should be useful. It lets you emulate tclsh in Eggdrop's partyline.
Post Reply