[Ecls-list] examples or documentation on debugging...
Juan Jose Garcia-Ripoll
juanjose.garciaripoll at googlemail.com
Tue Jun 9 17:19:10 UTC 2009
I must warn that Slime is right now in a bit broken state becaue of
the changes in the environment structure to accommodate compiled
functions. I was also made aware that using form number is not really
useful when the code changes the readtable or use #+ or #-. Indeed,
this is the case in a couple of libraries and should be a major
problem debugging them.
Things are as follows. First, Slime will have to be upgraded to
understand the environment produced by C functions (basically it
involves calling si::decode-ihs-env)
Second, ECL is being changed to record not the form number, but the
precise file position at which the form was read. Please understand
that this is a complicated change -- we might not get it right the
first time -- since it involves detecting forms that are ignorable
(#+/- conditionals, comments, etc).
Given the file position, it should not be difficult to compute the
line number and column, if somebody needs it.
Again, Slime should be upgraded to understand this new information as well.
Juanjo
On Tue, Jun 9, 2009 at 2:28 PM, Geo Carncross<geocar at gmail.com> wrote:
> On Fri, Jun 5, 2009 at 6:10 PM, Blair Sutton<blairuk at googlemail.com> wrote:
>> Is there an easy way to determine what the 226th top level form is? I can't
>> believe lisp programmers surely go through and compile the lisp code in
>> their heads and count the resulting forms whenever they reach an error like
>> the above?
>
> M-x beginning-of-buffer C-u 226 M-x forward-sexp
>
> although, if you use slime, it will (should) mark the form for you.
>
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables unlimited
> royalty-free distribution of the report engine for externally facing
> server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> Ecls-list mailing list
> Ecls-list at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ecls-list
--
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)
http://juanjose.garciaripoll.googlepages.com
More information about the ecl-devel
mailing list