From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 23695 invoked from network); 10 Feb 2021 22:08:41 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 10 Feb 2021 22:08:41 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1612994921; b=TWOTwjIsuKxRxj+9+48GG+i7DwpCSyQ+7eZNbroOLILpnmndct9ilQBuM32Pls4kII0hMeDGOo jjuxCHaPb4jBC+cUdTc6tnj47+75ooEyIckClxD95fY49vGmeecc/WgI1ygcj5ulwEjZDqqxqh YBsoBMZUnpS06tQVKnltAnnZzsQTJ4bSDAdKIoaXbl4B6SsOD3hePBL/3/pHmtNLaR23XspwVO W/zwOwiGKS7B0P4BMnUWdGSh95XfBxVCjtquhQZZ5jaj521JxbibD36XBHUZaE96D7M2HaMnR+ 9HQxh64EtSayQ5crR90B8HLnzGtl1TVThYWnXW03zotsVA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-io1-f47.google.com) smtp.remote-ip=209.85.166.47; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1612994921; bh=tbbHZtgpdBbCgd0I0vPyFZVS6T95qehx6Qeqx9SRVd8=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:To:Subject:Message-ID:Date:From:MIME-Version: DKIM-Signature:DKIM-Signature; b=OPscGEhzKup4Ca1KiEeCc42XIAiFY8w0hPXMsW7IHha2S5mdFzvP3DPvfAzUXMXXCRD/gNG+Fw ltSJLggSaPWaKFNGTG/iOEaMkss4BJWbsNKSZV7hqaTPk4Jjj1vGK8mz3ixxgrtf3qTYPGqA4W YpxjCG0sUgZmmhmc8El0SX6LU1IHAHGYFobnCkdsRPq6t8xeTFjUnARG808MDe0oTLVe2E2Ccf kXD8WYI6+rQvIUm+FtYP37aWTueCuoJ61fbH7RhPxfOMrYO4vDC7XUa8nMn1C6dArLZDBTTiGJ XN9Mea34kyNLwlmzRzN7kdehYaKEpk010WqJmzJhbtPpyg==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:To:Subject:Message-ID: Date:From:MIME-Version:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References; bh=hBNXcXHSMzMFe9TxfLpbxsrJKYMEOv5HYWqshXoqMuA=; b=AfMUeTCyQPiHk53BDHhwXeHGaN 7db4IN275IA1ijKkkHE27MnEyS2XkTVgQLgrnrxPf2UHc/Sd8dnTw9n76IaEbUgAF483HW83wnxbY mkMT27sCv0kUPEbj3ukl8jNeY7gvuAqIr0hTL8zVMC8FcmNMy0EoU9T0gdmitwoD3vj4cZ/Uwcrzh mhtJ+UujYebooPOTEP44qoXm6cszG8611BzzJmMKuzSdmylSlp8mZ8W+vzDwgxQwz/YinfVK/52Tf dKs1ollAsoki5PyO0hqOQ201aX0RvVfdTy03Rjq9I7uarIrbjROgXUIdksaXkpBSb0roiqLWGXdkF wABvyEPg==; Received: from authenticated user by zero.zsh.org with local id 1l9xf5-000Okc-ET; Wed, 10 Feb 2021 22:08:39 +0000 Authentication-Results: zsh.org; iprev=pass (mail-io1-f47.google.com) smtp.remote-ip=209.85.166.47; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-io1-f47.google.com ([209.85.166.47]:44040) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1l9xeY-000ONj-A0; Wed, 10 Feb 2021 22:08:06 +0000 Received: by mail-io1-f47.google.com with SMTP id p132so3612723iod.11 for ; Wed, 10 Feb 2021 14:08:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=hBNXcXHSMzMFe9TxfLpbxsrJKYMEOv5HYWqshXoqMuA=; b=vC81Ld5HO6wpwOAKyLQJeOxv1f8ih0e3OE2SW3RBg8lcAuAxt3YlS7me8U8Ud+mwZl u9eiV5Qmu+q7IcOj/KOEU3d9QU4jKE+lZE26wq6pkZUbH7+683JfJGPtLAc/nJ0ANm8P WKNe8HwVOFrsx1guCiji3NGiz2MAHJnTrN/waOSxfVHX53M53SJmFbs+zo+J+0aCTOmf 9d2KoMcy30ZffC32Fr1M5g/1HbHemjrDzT3Ruz3lwPU+5KdYOKu3hS6dOn+YNQVMXBCs Bw+9A2O0Gql9sN+4bTL+DPeeelCATffYPG3/xb30cNJTIRAtdKDIO3/VzFIgc6tcyKQc TSyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=hBNXcXHSMzMFe9TxfLpbxsrJKYMEOv5HYWqshXoqMuA=; b=QhVGuw46tTJd2h7HumT209dDQgZVYKlKLDt79m68vuo6GFRvwlNwB+1bJpTtudhX5r l+m4ujEaVmvH+pD/ZqAsoWsG6/fJ7rNjLSUI+I01/F7RMdGeOdtUQRKPHaXG76cr5SoD IKtZgN4eQGtgNYiRFU0W67zo5Ejtft7sPcgzH0RpaLn7CEcMEhRKInvN+qFqNBvh6iPD bcx2iMKQSqG8WSQv1464gUdXr/66+CUV+DS/Sd+FyTSXhhtKXq3FWEveAn61wsCSAynf Sekm0ndvNJlHxxb3Mm6Q4Hr5FKpjNoLQMLKYwWKLmZFGO3Wj9rxlBME3OspVqEOoynrO GeCA== X-Gm-Message-State: AOAM533h9rHYPTuOfjOEFTO+VL8XtBR8qJG+yZFT1VZTIIs/QFaJTZ6A QWFPSwJZE+Q75SPEleh3oJ9uVIZmebnXDJ9XrvwYR2rTWEbc5A== X-Google-Smtp-Source: ABdhPJxxDDcF9IrMRvnTZbOy1gU0uCWwnEy4gFVWQelqgL85qLs1V9YjtD93qzYB9GnVw4rOTjZBzrx6R7B41q/xPxo= X-Received: by 2002:a6b:f111:: with SMTP id e17mr2738142iog.143.1612994884482; Wed, 10 Feb 2021 14:08:04 -0800 (PST) MIME-Version: 1.0 From: Pier Paolo Grassi Date: Wed, 10 Feb 2021 23:07:28 +0100 Message-ID: Subject: debug functions To: Zsh-Users List Content-Type: multipart/alternative; boundary="0000000000001d3f7b05bb02a32a" X-Seq: 26500 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: Archived-At: --0000000000001d3f7b05bb02a32a Content-Type: text/plain; charset="UTF-8" Hello, I would like to activate the same behaviour of functions -T function_name, but for the current scope, ie the function already been called. something like: function_name (){ functions -T $0 ... } fname this doesn't work, I think because the tracing starts when the function is called. I know I can do setopt xtrace, but this debugs also the functions called from now on, functions -T does not. Is there a way to activate debug for the current scope only? thanks Pier Paolo Grassi --0000000000001d3f7b05bb02a32a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello, I would like to activate the same behaviour of func= tions -T function_name, but for the current scope, ie the function already = been called.
something like:

function_name (){
=C2=A0 functions=C2=A0-T $0
=C2=A0 ...
}<= /div>
fname

this doesn't work, I think bec= ause the tracing=C2=A0starts when the function is called.
I know = I can do setopt xtrace, but this debugs also the functions called from now = on, functions -T does not.
Is there a way to activate debug for t= he current scope only?
thanks

<= div dir=3D"ltr">
Pier Pao= lo Grassi
--0000000000001d3f7b05bb02a32a--