How to run program

10 views
Skip to first unread message

Duffus McGee

unread,
Jul 30, 2009, 4:27:04 PM7/30/09
to zerobugs
Hi all, In the zerobugs debugger, how Can I set a home directory so
that I don't have to go through a long path every time I load a
program? Setting the "HOME" variable does not seem to work. Also How
can I run a program in zerobugs that I normally run on command line
as: $ abc < in.xml > out.xml ?

Thanks

C. Vlasceanu

unread,
Jul 31, 2009, 2:35:07 AM7/31/09
to zero...@googlegroups.com
1) Use the File --> Execute menu. Click on the Environment button and edit the HOME var before launching the program.

The complete environment is saved in the history, so if you want to re-run the program later, you can edit the saved environment. From the zerobugs menu bar select Tools --> History. In the dialog that opens, find the entry that corresponds to your executable and right-click on it. Select Environment from the menu.


2) There is no UI for specifying redirects, but try this hack for a workaround: make a wrapper shell script like this:
#! /bin/sh
./a.out < test2.c > out.txt

chmod +x wrapper
zero --trace-fork ./wrapper

Then press F10 (or from the menu bar, select Program --> Next) in zerobugs.
--
the-free-meme.blogspot.com
Reply all
Reply to author
Forward
0 new messages