From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: (qmail 23482 invoked from network); 3 May 2020 16:17:20 -0000 Received-SPF: pass (minnie.tuhs.org: domain of minnie.tuhs.org designates 45.79.103.53 as permitted sender) receiver=inbox.vuxu.org; client-ip=45.79.103.53 envelope-from= Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 3 May 2020 16:17:20 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id 55E369C978; Mon, 4 May 2020 02:17:19 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 3A7A99B934; Mon, 4 May 2020 02:17:03 +1000 (AEST) Received: by minnie.tuhs.org (Postfix, from userid 112) id 28E579B934; Mon, 4 May 2020 02:17:01 +1000 (AEST) Received: from cfcl.com (cpepool4cmts2-144.sanbrunocable.com [24.143.248.144]) by minnie.tuhs.org (Postfix) with ESMTP id 31B9494621 for ; Mon, 4 May 2020 02:17:00 +1000 (AEST) Received: from spot.local (spot.local [IPv6:fe80::1c0d:8a40:1437:1275]) by cfcl.com (Postfix) with ESMTP id A3756DC1C8C for ; Sun, 3 May 2020 09:16:59 -0700 (PDT) From: Rich Morin Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\)) Date: Sun, 3 May 2020 09:16:58 -0700 References: <202005020252.0422qnFL066007@tahoe.cs.Dartmouth.EDU> <20200502174518.GC30768@mcvoy.com> To: The Unix Heritage Society mailing list In-Reply-To: <20200502174518.GC30768@mcvoy.com> Message-Id: <7A8D26C8-67DB-4676-92D1-7842209F1807@cfcl.com> X-Mailer: Apple Mail (2.3608.40.2.2.4) Subject: Re: [TUHS] SDB debugger X-BeenThere: tuhs@minnie.tuhs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: The Unix Heritage Society mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" > On May 2, 2020, at 10:45, Larry McVoy wrote: >=20 > ... But truth be known, I'm sort of a printf() debugger. ... So am I, and ISTR Brian Kernighan and Larry Wall saying that they are, = as well. Over the years, I've written some scripts to make this less = painful. For example, in Ruby, I use the et() script, as written up in = http://wiki.cfcl.com/Projects/Ruby/Phone_Home: l =3D %w[ context~ dir_path# file_path foo.bar bar[:baz] ] et(l) This produces the following output: some_script:72:in `main' context { :foo =3D> "yada yada yada", ... } file_path "a/b/c" foo.bar :warn bar[:baz] 42 I also have a tiny Elixir script, ii/2, which works nicely in pipelines: ... |> ii(:foo) ... -r