[Oz] Debugger question

Kent Hoxsey khoxsey at ix.netcom.com
Thu Apr 1 01:48:50 CEST 1999


Hey y'all,

I'm having a minor problem with the debugger that is causing me a bit of
grief, and probably just need a pointer from somebody more experienced.
I have no trouble using the debugger as long as I'm working on code in
the OPI, but as soon as I try to create a compiled application, I get
errors. Here's a very simple program:

declare X Y in
X = 1
Y = X+1

I can run this with the debugger out of the OPI, but when I try to
compile it, I get the message "only functors can be made executable".
OK, fair enough. Then try this:

functor
define X Y in
   X = 1
   Y = X+1
end

Compile it and try to run the debugger:

ozc -x test.oz
ozd -E test

and when the OPI starts up, I get the error message:

	Symbol's function definition is void: oz-attach

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".

So I seem to have two related problems: (1) I can debug code in the OPI,
but can't compile it to final executable form. (2) I can write code so
it will compile to final executable form, but I cannot debug it either
in the OPI or on the command line.

Can anybody help me with what I'm doing wrong? When you all are writing
bigger applications, how do you manage your build/debug process?

If it's any help, I'm running the Irix version of Mozart 1.0.1
(19990218).

T'anks.
Kent

BTW, are there any Oz conferences scheduled for this year?
-
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