<div class="gmail_quote">On Sun, May 27, 2012 at 10:57 PM, Antonio Bonifati <span dir="ltr"><<a href="mailto:antonio.bonifati@gmail.com" target="_blank">antonio.bonifati@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div></div>
<div>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? :-)</div>
</blockquote></div><br>No, the bytecodes compiler is capable of that. As seen in src/c/compiler.d<div><br></div><div>@(defun si::eval-with-env (form &optional (env Cnil) (stepping Cnil)<div> (compiler_env_p Cnil) (execute Ct))</div>
<div><br></div><div>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.</div>
<div><br></div><div>Juanjo</div><div><br></div>-- <br>Instituto de Física Fundamental, CSIC<br>c/ Serrano, 113b, Madrid 28006 (Spain) <br><a href="http://juanjose.garciaripoll.googlepages.com" target="_blank">http://juanjose.garciaripoll.googlepages.com</a><br>
</div>