How do I compile Maxima with debugging information?



If you want to see what is going on in specasep, I suggest you do the 
following:

1. put the function definition  (defun specasep .....)
in a separate file.
2. change it as you would like, in particular insert lines like this:


  (if $debugspecasep (format t "~%variable v=~s"  v))

3. Read in that definition, over-riding the standard definition,
and (setf $debugspecasep  t).

4. run your test cases.

RJF
\

Valery Pipin wrote:

>I would suggest to debug it within lisp session of maxima which is  started 
>after to_lisp(). This could give you all the power of underlying lisp 
>debugger. I've personnaly never tried it. Probably it is a wrong advice
>Sorry if it's the case.
>
>best luck,
>Valery
>  
>On Wednesday 08 October 2003 18:53, Andrei Zorine wrote:
>  
>
>>As far as I'm concerned, tracing and breaking at a point are two
>>different tasks. Yes, I tried to trace(), but it turned out
>>insufficient, because
>>(C1) ?trace(?specasep)$
>>(C2) solve(log(x)=1,x);
>>  1> (SPECASEP (#:G21847 1 1 0 -1))
>>  <1 (SPECASEP T)
>>
>>is not what I want. Even setting trace_oprions(?specasep, break) doesn't
>>help, because I can't see what's going on inside the lisp function from
>>the maxima debugger (I can't ask for lisp local variables etc.) That's
>>why I wanted to put a breakpoint inside a lisp function.
>>
>>Here's another failure:
>>(C6) load("solve.lisp");
>>(D6)   C:/PROGRAM FILES/MAXIMA-5.9.0/share/maxima/5.9.0/src/solve.lisp
>>(C7) :br specasep
>>Turning on debugging debugmode(true)No line info for $specasep
>>(C7) :br ?specasepNo line info for $SPECASEP
>>
>>(D6) shows that the file neede was loaded, but I can't put a breakpoint
>>anyway. So, your suggestions are still wanted.
>>
>>--
>>Andrei Zorine
>>
>>p.s. Has anybody seen the trace.dem file ever?
>>
>>Richard Fateman wrote:
>>    
>>
>>>try  trace(?specasep);
>>>
>>>or   ?trace(?specasep);
>>>
>>>Andrei Zorine wrote:
>>>      
>>>
>>>>when I want to place a breakpoint inside maxima source files (like
>>>>solve.lisp), it says
>>>>
>>>>(C1) :br ?specasep
>>>>No line info for $SPECASEP
>>>>
>>>>--
>>>>Andrei Zorine
>>>>
>>>>_______________________________________________
>>>>Maxima mailing list
>>>>Maxima@www.math.utexas.edu
>>>>http://www.math.utexas.edu/mailman/listinfo/maxima
>>>>        
>>>>
>>_______________________________________________
>>Maxima mailing list
>>Maxima@www.math.utexas.edu
>>http://www.math.utexas.edu/mailman/listinfo/maxima
>>    
>>
>
>_______________________________________________
>Maxima mailing list
>Maxima@www.math.utexas.edu
>http://www.math.utexas.edu/mailman/listinfo/maxima
>  
>