zsh-users
 help / color / mirror / code / Atom feed
* zsh debug tips ?
@ 2005-06-03  7:37 Marc Chantreux
  2005-06-03 11:51 ` lists
  0 siblings, 1 reply; 3+ messages in thread
From: Marc Chantreux @ 2005-06-03  7:37 UTC (permalink / raw)
  To: zsh-users

Hi all,

as my zsh scripts grown, it becomes harder and harder to find bugs. I
would like to know if zsh have a tool to ease the debugging.

I would like to see a step by step execution, backtraces and so on. Is
there a way ro have it ? if not , is there another way to ease debugging
?

regards
mc


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: zsh debug tips ?
  2005-06-03  7:37 zsh debug tips ? Marc Chantreux
@ 2005-06-03 11:51 ` lists
  2005-06-03 12:24   ` Marc Chantreux
  0 siblings, 1 reply; 3+ messages in thread
From: lists @ 2005-06-03 11:51 UTC (permalink / raw)
  To: Marc Chantreux; +Cc: zsh-users

Hi,
     You probably already know about this, but you can set the XTRACE  
and VERBOSE options to get a better idea about what's happening  
either like this:

#!/bin/zsh -xv

or like this:

setopt XTRACE VERBOSE

I don't know of a zsh 'debugger' if that's more what you were looking  
for, but maybe someone else does.


Regards,
Ryan

On Jun 3, 2005, at 2:37 AM, Marc Chantreux wrote:

> Hi all,
>
> as my zsh scripts grown, it becomes harder and harder to find bugs. I
> would like to know if zsh have a tool to ease the debugging.
>
> I would like to see a step by step execution, backtraces and so on. Is
> there a way ro have it ? if not , is there another way to ease  
> debugging
> ?
>
> regards
> mc
>


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: zsh debug tips ?
  2005-06-03 11:51 ` lists
@ 2005-06-03 12:24   ` Marc Chantreux
  0 siblings, 0 replies; 3+ messages in thread
From: Marc Chantreux @ 2005-06-03 12:24 UTC (permalink / raw)
  To: zsh-users

>     You probably already know about this, but you can set the XTRACE  
> and VERBOSE options to get a better idea about what's happening  either 

i didn't know and it helps a lot. thanks

mc


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-06-03 12:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-03  7:37 zsh debug tips ? Marc Chantreux
2005-06-03 11:51 ` lists
2005-06-03 12:24   ` Marc Chantreux

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).