[plug] script debugging

Bill Kenworthy billk at iinet.net.au
Sun Aug 4 06:25:36 WST 2002


most shell specs take a verbose argument:

"#!/bin/sh -x"

chain subscripts/commands for simple error control:

script1 && script2 runs script1 to completion before script2


BillK

On Sat, 2002-08-03 at 19:57, Jon Miller wrote:
> 
> Is there a way to turn on a debugger while running a script.  I'm looking
> for something that can go line by line and when an error arises it stops. 
> The problem is I have a script that gives me the same error at the same spot
> and I cannot see what the problem is. 
> On the same note if there are functions developed in the script and I want
> to call them at the end of the script do I need to put a ";" after each
> function or just the last function.  From what I understand ";" mean end of
> command.  If this is true then it should only be put at the end of the last
> function.  If this being the case do I still need to put a exit 0 on the
> very last line.
> 
> Thanks
> 
> Jon L. Miller
> MMT Networks Pty Ltd
> 
> 




More information about the plug mailing list