Newbie question about debugging and troubleshooting

Joel Bryan T. Juliano joelbryan.juliano at gmail.com
Wed May 10 22:33:52 BST 2006


On Wed, 2006-05-10 at 16:21 -0500, john e wrote:
> I recently read about strace, a nice utility to get all sorts of good
> info from a repeatable bug ( eg: strace /bin/buggy_program )
> lsof has helped in some cases. (eg: lsof /home)
> 
> Are there anymore the devs would recommend, I'd especially like to
> know on that'll read the exit code from the last progam ran.
> eg:
> bash> ls
> error ... crash bang boom
> bash> read_last_error
> last exit code was 3
> bash>_
> 

bash> ls 2> errors.txt &
bash> ls_pid="$!"
bash> cat errors.txt
bash> kill ls_pid 2> exit_code.txt
bash> cat exit_code.txt

> 
> On 5/10/06, Dennis Kaarsemaker <dennis at kaarsemaker.net> wrote:
> > On wo, 2006-05-10 at 13:21 -0400, Borden Rhodes wrote:
> > > Basically, I'm curious if there's a good reading list out
> > > there for bug hunters and troubleshooters
> >
> > https://wiki.ubuntu.com/ReportingBugs
> > https://wiki.ubuntu.com/HelpingWithBugs
> >
> > --
> > Dennis K.
> >
> > Time is an illusion, lunchtime doubly so.
> >
> >
-- 
Joel Bryan T. Juliano <joelbryan.juliano at gmail.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/ubuntu-devel/attachments/20060511/3d255da5/attachment.pgp


More information about the ubuntu-devel mailing list