- Subject: [Jed-users-l] slang function debugging?
- From: Ulli Horlacher <framstag@xxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 4 Jun 2013 10:03:54 +0200
How can one debug an error in a slang function?
I have substituted make_backup_filename() (from site.sl) with my own
version:
define make_backup_filename(dir,file) {
variable f = dir + "/" + file;
f = str_quote_string(f,"\"'`[](){}<>|;&$*? \t",'\\');
system(sprintf("vv -s %s >/dev/null",f));
return "";
}
(vv is my versioning program)
It works well when I edit just one file, but when I edit more files and
change their buffers, I get on exit :
Unable to typecast Integer_Type to String_Type
and jed continues to run.
A second exit then is successfull.
The error must be in the new make_backup_filename(), because it disapears
when I use
define make_backup_filename(dir,file) {
return "";
}
How can I debug it?
At least I need a line number where the error happens.
--
Ullrich Horlacher Informationssysteme und Serverbetrieb
Rechenzentrum IZUS/TIK E-Mail: horlacher@xxxxxxxxxxxxxxxxxxxx
Universitaet Stuttgart Tel: ++49-711-68565868
Allmandring 30a Fax: ++49-711-682357
70550 Stuttgart (Germany) WWW: http://www.tik.uni-stuttgart.de/
REF: <20130604080354.GA20268@xxxxxxxxxxxxxxxxxxxx>
_______________________________________________
Jed-users-l mailing list
Jed-users-l@xxxxxxxx
http://mailman.jtan.com/mailman/listinfo/jed-users-l
[2013 date index]
[2013 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]