mIRC Home    About    Download    Register    News    Help

Print Thread
#183532 20/08/07 06:58 PM
Joined: Aug 2007
Posts: 2
K
Kitashi Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
K
Joined: Aug 2007
Posts: 2
I make oddly constructed scripts, so when something doesn't work, I spend more time trying to find the error than fixing it. A debugger to step through each part of the script would be extensively useful.

Kitashi #183539 20/08/07 07:24 PM
Joined: Apr 2004
Posts: 759
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Apr 2004
Posts: 759
knowing how your code flows + the almighty /echo command is about all the debugging you need.

Writing complex code does not necessary equal good code smile


$maybe
Mpdreamz #183540 20/08/07 07:29 PM
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
Code:
//var %x = 119 104 121 32 110 111 116 63 | var %i = 1 | while ($gettok(%x,%i,32)) { bset &t $calc($bvar(&t,0) + 1) $gettok(%x,%i,32) | inc %i } | echo -a $bvar(&t,1-).text

Kitashi #183541 20/08/07 07:31 PM
Joined: Nov 2006
Posts: 1,559
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
Hum, wonder if we'll ever see one...
For my part, I'd be more than contented with extended find- and syntax highlighting options of the scripts editor (had not to match with apps like notepad++ or regexbuddy, just something light smile ) ... I'm unsure whether or not this had been requested before.

With or without such a feature, the best debugging engine will always be the human brain. And in addition, there are all that help chans, boards and tutorials out there cool
(Just for convenience, some examples of helpful links: "find the bug" "common pitfalls" "syntax tutorial" "evaluation brackets" "debugging" )

Mpdreamz #183542 20/08/07 07:35 PM
Joined: Aug 2007
Posts: 2
K
Kitashi Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
K
Joined: Aug 2007
Posts: 2
Originally Posted By: Mpdreamz
knowing how your code flows + the almighty /echo command is about all the debugging you need.

Writing complex code does not necessary equal good code smile


Yes, I use echo a lot, and it is extremely helpful, I was just thinking that a debugger would be quicker, and possibly more effective than /echo -a in finding certain errors.

Kitashi #183544 20/08/07 07:43 PM
Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031
Finding your own errors helps you learn from your mistakes.

Kitashi #183694 21/08/07 10:24 PM
Joined: Oct 2003
Posts: 3,918
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"

Link Copied to Clipboard