Emilio Duarte Garcia wrote:
Hi.

How I can execute a file foo.oz from console (unix terminal) without run emacs?
What commands exactly I need to execute from console?

for example I have the file simple.oz:

Yo have to put this code into a functor, compile it and run it from the console.

http://www.mozart-oz.org/documentation/apptut/node1.html#part.getting.started

[snip]

I want to run simple.oz for trace the execution in the emulator.exe with
gdb or ddd (data display debugger)

How I can debug or trace the execution of simple.oz inside the emulator.exe?

You can debug code while running the OPI. Here is an example of how to do it.

hobbes$ oz &
hobbes$ gdb $INSTALLPATH/platform/linux-i486/emulator.exe <process id>
...
bla bla from gdb
...
(gdb) continue
Continuing


Then you are ready to feed code in the OPI and debug it. You better use a compiled version with --enable-opt=debug option.

I hope this help

Boriss




Thanks in advance.

Emilio Duarte Garcia.


------------------------------------------------------------------------

_________________________________________________________________________________
mozart-hackers mailing list [email protected] http://www.mozart-oz.org/mailman/listinfo/mozart-hackers

_________________________________________________________________________________
mozart-hackers mailing list [email protected] http://www.mozart-oz.org/mailman/listinfo/mozart-hackers

Reply via email to