On Sun, May 27, 2012 at 10:57 PM, Antonio Bonifati <
antonio.bonif...@gmail.com> wrote:

>  Unfortunately I also need the stepper sometimes to debug my code.
> Recompiling is not a problem at all. But how do I enable the stepping
> feature on a function when compiling? I mean, is that already implemented?
> Do I have to implement it by myself in Lisp itself? :-)
>

No, the bytecodes compiler is capable of that. As seen in src/c/compiler.d

@(defun si::eval-with-env (form &optional (env Cnil) (stepping Cnil)
                           (compiler_env_p Cnil) (execute Ct))

this is the function that transforms a form into bytecodes and it allows
one to specify that it should be stepped. Using this and
FUNCTION-LAMBDA-EXPRESSION it should be possible to teach TRACE how to
recompile a traced function so that it allows stepping.

Juanjo

-- 
Instituto de FĂ­sica Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)
http://juanjose.garciaripoll.googlepages.com
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Ecls-list mailing list
Ecls-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecls-list

Reply via email to