How do I debug mistelix

3 views
Skip to first unread message

adrian15

unread,
May 17, 2009, 6:07:26 AM5/17/09
to mist...@googlegroups.com
Hi Mistelix mailing list,

I am going to explain how I debug mistelix. If it is good enough please
feel free to add this to the official documentation.

I suppose that mistelix has been built from source code and already
installed.

I open a terminal (I use konsole but gnome-terminal is also valid).
I set up the debug (I know that there is another file where I can set up
it but it's ok for me):
export MISTELIX_DEBUG=true

After that I run mistelix echoing the default output to a file
and the error output to another file:
mistelix > /tmp/output_ok.txt 2> /tmp/output_error.txt

Now look at this. I open two more terminal tabs in konsole and I write:

TAB 1:
tail -f /tmp/output_ok.txt
TAB 2:
tail -f /tmp/outuput_error.txt

This way I can see the output as it happens and at the same time
I have it already saved in a file.

There other ways of doing this with the tee command but this involves
mixing default and error output in the terminal where you run mistelix.

adrian15
--
Support free software. Donate to Super Grub Disk. Apoya el software
libre. Dona a Super Grub Disk. http://www.supergrubdisk.org/index.php?pid=10

Jordi Mas

unread,
May 19, 2009, 3:05:14 PM5/19/09
to mist...@googlegroups.com
Hello Adrián,


I open a terminal (I use konsole but gnome-terminal is also valid).
I set up the debug (I know that there is another file where I can set up 
it but it's ok for me):
export MISTELIX_DEBUG=true

After that I run mistelix echoing the default output to a file
and the error output to another file:
mistelix > /tmp/output_ok.txt 2> /tmp/output_error.txt

Now look at this. I open two more terminal tabs in konsole and I write:

TAB 1:
tail -f /tmp/output_ok.txt
TAB 2:
tail -f /tmp/outuput_error.txt

This way I can see the output as it happens and at the same time
I have it already saved in a file.

There other ways of doing this with the tee command but this involves 
mixing default and error output in the terminal where you run mistelix.

Additionally to this a mistelix.log is automatically created. See [1].

Thanks,

[1] http://www.mistelix.org/Debugging

adrian15 adrian15

unread,
May 20, 2009, 11:11:39 AM5/20/09
to mist...@googlegroups.com
2009/5/19 Jordi Mas <jord...@gmail.com>:

> Additionally to this a mistelix.log is automatically created. See [1].
>
> Thanks,

In the web I read .mistelix.log, is it ok? I mean, here in the mail
you write mistelix.log (without the initial dot).

I will also check this file and decide whether I stick with my method
or if I just tail -f mistelix.log.

Thank you.

Jordi Mas

unread,
May 22, 2009, 9:14:16 AM5/22/09
to mist...@googlegroups.com
El dc 20 de 05 de 2009 a les 17:11 +0200, en/na adrian15 adrian15 va escriure:
2009/5/19 Jordi Mas <jord...@gmail.com>:
> Additionally to this a mistelix.log is automatically created. See [1].
>
> Thanks,

In the web I read .mistelix.log, is it ok? I mean, here in the mail
you write mistelix.log (without the initial dot).

Exactly.

Best Regards,

Jordi,
Reply all
Reply to author
Forward
0 new messages