Mailinglist Archive: opensuse (1885 mails)
| < Previous | Next > |
Re: [opensuse] BASH - Better way to debug bash script??
- From: Anders Johansson <ajohansson@xxxxxxx>
- Date: Sat, 4 Apr 2009 20:16:47 +0200
- Message-id: <200904042016.47953.ajohansson@xxxxxxx>
On Saturday 04 April 2009 20:08:43 David C. Rankin wrote:
I haven't used it much, but bashdb looks very useful to me. It allows you to
do to a bash script what gdb lets you do to a C program.
I've only used it a little so I'm no great expert, but it has been useful to
me. break, step and print are the things I use the most in a debugger anyway
Anders
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
Listmates,
Another simple question I'm looking for a better answer to. What is the
best way to step line-by-line through bash script for debugging? I found
the following, that works, but it just doesn't seem like an elegant
solution for longer scripts:
#!/bin/bash
set -x
trap "read x" DEBUG
What are the other tools that will do this?
I haven't used it much, but bashdb looks very useful to me. It allows you to
do to a bash script what gdb lets you do to a C program.
I've only used it a little so I'm no great expert, but it has been useful to
me. break, step and print are the things I use the most in a debugger anyway
Anders
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
| < Previous | Next > |