From owner-freebsd-questions@FreeBSD.ORG Mon May 31 08:19:29 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B816F1065674 for ; Mon, 31 May 2010 08:19:29 +0000 (UTC) (envelope-from eliaschr@cha.forthnet.gr) Received: from mx-out.forthnet.gr (mx-out.forthnet.gr [193.92.150.104]) by mx1.freebsd.org (Postfix) with ESMTP id A27BA8FC1A for ; Mon, 31 May 2010 08:19:28 +0000 (UTC) Received: from mx-av-04.forthnet.gr (mx-av.forthnet.gr [193.92.150.27]) by mx-out-04.forthnet.gr (8.14.3/8.14.3) with ESMTP id o4V8JQkF024965 for ; Mon, 31 May 2010 11:19:26 +0300 Received: from MX-IN-01.forthnet.gr (mx-in-01.forthnet.gr [193.92.150.23]) by mx-av-04.forthnet.gr (8.14.3/8.14.3) with ESMTP id o4V8JQs2016905 for ; Mon, 31 May 2010 11:19:26 +0300 Received: from pluto.universe (62.1.221.99.dsl.dyn.forthnet.gr [62.1.221.99]) by MX-IN-01.forthnet.gr (8.14.3/8.14.3) with ESMTP id o4V8JPho003756 for ; Mon, 31 May 2010 11:19:26 +0300 Authentication-Results: MX-IN-01.forthnet.gr smtp.mail=eliaschr@cha.forthnet.gr; spf=neutral Authentication-Results: MX-IN-01.forthnet.gr header.from=eliaschr@cha.forthnet.gr; sender-id=neutral From: Elias Chrysocheris To: freebsd-questions@freebsd.org Date: Mon, 31 May 2010 11:19:24 +0300 User-Agent: KMail/1.13.3 (FreeBSD/8.0-RELEASE-p3; KDE/4.4.3; amd64; ; ) References: <4C036C48.3000307@comclark.com> In-Reply-To: <4C036C48.3000307@comclark.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201005311119.25027.eliaschr@cha.forthnet.gr> Subject: Re: how to debug .sh type script X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 May 2010 08:19:29 -0000 On Monday 31 of May 2010 10:59:04 Aiza wrote: > Is there way to single step through each line of code and see the real > values of the variables? > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" I'm not aware of a way to single step a script. But the old method of echo and exit is the way I use. I use echo to print the values and the line numbers that I want and exit to stop the execution of the script at a point I wish it to stop. Elias