[Oz] Debugger question

Leif Kornstaedt kornstae at ps.uni-sb.de
Tue Apr 6 22:16:33 CEST 1999


khoxsey at ix.netcom.com (Kent Hoxsey) writes:
> and when the OPI starts up, I get the error message:
> 
> 	Symbol's function definition is void: oz-attach

This is indeed a bug and will be fixed in the next release.
Meanwhile, you can try adding the following to your .emacs:

   (setq load-path (cons "/usr/local/oz/share/elisp" load-path))
   (require 'mozart)

replacing the path name according to your installation
directory.

> To make matters worse, when I try to run my code in the debugger from
> the OPI, I now get the error "illegal use of nesting marker".

When you feed code in the OPI, the compiler expects statements,
whereas the command-line compiler expects expressions that (usually)
evaluate to functors.  This is where the error message comes from.

> When you all are writing
> bigger applications, how do you manage your build/debug process?

Personally, I start out by testing individual procedures in the OPI,
which I `declare'.  I then make them into functors (like you did)
and export the relevant portions, compiling them from the command
line using Makefiles.  If I need to use them from the OPI again,
I access them using `Module.link'.  Thus, most often the debugger
is actually started from the OPI.

Leif.
-
Please send submissions to users at mozart-oz.org
and administriva mail to users-request at mozart-oz.org.
The Mozart Oz web site is at http://www.mozart-oz.org/.





More information about the mozart-users mailing list