Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: source file info from PS4
- X-seq: zsh-workers 25687
- From: Peter Stephenson <pws@xxxxxxx>
- To: "Zsh hackers list" <zsh-workers@xxxxxxxxxx>
- Subject: Re: PATCH: source file info from PS4
- Date: Thu, 18 Sep 2008 16:25:32 +0100
- In-reply-to: <6cd6de210809180822y15f5c97bn44844f4ef76b22a7@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <6005.1221576641@xxxxxxx> <6cd6de210809170939p968d36bufda419592a10cb45@xxxxxxxxxxxxxx> <20080918131320.2d7f88f4@news01> <6cd6de210809180805w6a60f2eft222e436176659fe4@xxxxxxxxxxxxxx> <6cd6de210809180822y15f5c97bn44844f4ef76b22a7@xxxxxxxxxxxxxx>
"Rocky Bernstein" wrote:
> But suppose one wrote a profiler, or just some sort of signal handler. Don't
> you want to be able to debug via PS4 the same as any other code?
You can do that using the TRAPNAL() { ... } form of trap, which records
line numbers like any other function. I'll have to make sure this is
documented somewhere.
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070
Messages sorted by:
Reverse Date,
Date,
Thread,
Author