jed-users mailing list

[2007 Date Index] [2007 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: svn.sl problems


John E. Davis schrieb:
Joachim Schmitz <js@xxxxxxxxxxxxx> wrote:
The code looks quite ok to me. Any help is apreacheated.

Apparantly one of the functions is not preserving the current buffer.
You might try using the debugger, which is not yet fully integrated
into jed.  Nevertheless, you can try the following to get an idea
about how it will eventually work:

1.  Put the following code in your .jedrc file:

autoload ("sldb", "sldbsock");
define _line ()
{
   variable beg, end;
   push_spot ();
   push_mark ();
   bol ();
   beg = bufsubstr ();
   pop_spot ();
   push_spot ();
   push_mark ();
   eol ();
   end = bufsubstr ();
   pop_spot ();
return strcat (beg, "^", end);
}

define debug (files)
{
   if (NULL != getenv ("DISPLAY"))
     {
	variable pgm = path_concat (_slang_install_prefix, "share/slsh/scripts/sldb");
	pgm = sprintf ("(sleep 1; xterm -e '%s' --pid %d) &", pgm, getpid ());
	() = system (pgm);
     }
   sldb (files[0]);
}

2. Run jed via:

   jed -hook debug svn.sl

3. At the (sldb) prompt, you can use

    (sldb) p _line

   to see the current line.
the debugger window is opened:

Received Open failed error.  Entering the debugger
sldb at /usr/local/share/slsh/sldbcore.sl:680
680    () = evalfile (file);
(SLdb) p _line
Caught exception:***string***:1:<top-level>:Unable to locate --pid on load path
_line is undefined


4. Set a breakpoint in the desired function, e.g., cvs_list_dir:

    (sldb) break cvs_list_dir

5. Tell sldb to continue:

    (sldb) cont
the window is closed.


--
Mit freundlichen Grüßen                                Joachim Schmitz
......................................................................
AixtraWare eK ..Joachim Schmitz ..www.aixtraware.de ..t: +49-2464-8851
Hüsgenstr. 33a .....d-52457 Aldenhoven .............f: +49-2464-905163




--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.


[2007 date index] [2007 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]