| 
      
      
      From: Robert D. <rob...@gm...> - 2017-08-25 06:24:39
      
     | 
| On 2017-08-24, Helmut Jarausch <jar...@sk...> wrote: > whenever I get control in Maxima's debugger, the displayed line numbers > are too small (in most cases). > - empty lines in front of a function definition at the outermost level > increase the discrepancy by 1 > except when following a comment > > - any function definition preceeding the function to be debugged > increases the discrepancy by 1 I'm pretty sure the debugger is just using the line number information that's pasted into input expressions by the parser. You can see the line number stuff if you look at the Lisp representation of the function. E.g. let's say you have a function f(x) := ... in a file. After loading the file, :lisp (symbol-plist '$f) shows the function definition (among any other properties). The line number info is a list of several items (I don't know if the list is always the same) which is smashed into the expression car. The first two items are a line number and a file name. If line numbers are being displayed incorrectly, I guess either the numbers are correct and the display is incorrect (so look at the debugger code) or the line numbers are incorrect (so look at the parser code). About the latter, see ADD-LINEINFO and NEWLINE in src/nparse.lisp. Sorry I can't be more helpful. If you give a specific example I might be able to investigate. best, Robert Dodier |