Debug mode for running scripts?

Jan Sneep jan at azureservices.ca
Sat Jun 9 14:13:40 UTC 2007


> -----Original Message-----
> From: ubuntu-users-bounces at lists.ubuntu.com
> [mailto:ubuntu-users-bounces at lists.ubuntu.com]On Behalf Of 
> Nils Kassube
> Sent: June 9, 2007 8:54 AM
> To: ubuntu-users at lists.ubuntu.com
> Subject: Re: Debug mode for running scripts?
> 
> 
> Jan Sneep wrote:
> > Is there some way to run a script in a step-by-step way to 
> see how far
> > the script goes before it runs into an error? Something 
> like a verbose
> > step-by-step option of some kind?
> 
> If you include
> 
> set -o verbose
> 
> to the script it will print every command before execution to 
> standard 
> output.

So I would edit the script file and add that line at the top of the file?

and by standard output you mean the screen or some actual file someplace?




More information about the ubuntu-users mailing list