Re: [ooc-compiler] Position of runtime error
Brought to you by:
mva
|
From: Stewart G. <sgr...@ii...> - 2005-05-13 14:10:32
|
Hi August, > In runtime error messages, OOC outputs the position where the error > occurred but no info on line (or column) number, for instance: > > ## > ## Runtime error in module Test at pos 171 > ## Dereference of NIL > ## > > It's kind of hard to find the position in an editor that lacks Emacs' > `goto-char' function and even for Emacs users it would be more > convenient with a line (and a column) number. [...] You can get this information using the 'ooef' utility. For example, ooef src/Test.Mod 171 This gives you the source code context (the default behaviour, also available via the --context switch). If you just want to know the line and column you can do: ooef --linecol src/Test.Mod 171 Hope this helps. Cheers, Stewart |