From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/73823 Path: news.gmane.org!not-for-mail From: luigi scarso Newsgroups: gmane.comp.tex.context Subject: Re: Error Line Number Date: Fri, 13 Jan 2012 10:08:03 +0100 Message-ID: References: <1326327329.3238.5.camel@kip-laptop> <4F0EB254.9040801@wxs.nl> <1326395505.2847.24.camel@kip-laptop> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1843353058==" X-Trace: dough.gmane.org 1326445711 831 80.91.229.12 (13 Jan 2012 09:08:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 13 Jan 2012 09:08:31 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Jan 13 10:08:27 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Rld7a-0006tb-Kp for gctc-ntg-context-518@m.gmane.org; Fri, 13 Jan 2012 10:08:26 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4D8BACB1D8; Fri, 13 Jan 2012 10:08:25 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id KNZVCyp98clw; Fri, 13 Jan 2012 10:08:22 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 17EE5CB1D3; Fri, 13 Jan 2012 10:08:22 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B126FCB1D3 for ; Fri, 13 Jan 2012 10:08:19 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id oMbKnAt3mVO0 for ; Fri, 13 Jan 2012 10:08:05 +0100 (CET) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id 41A4FCB1B4 for ; Fri, 13 Jan 2012 10:08:05 +0100 (CET) Original-Received: from mail-iy0-f169.google.com (mail-iy0-f169.google.com [209.85.210.169]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q0D98324007084 for ; Fri, 13 Jan 2012 10:08:04 +0100 Original-Received: by iafj26 with SMTP id j26so5373182iaf.14 for ; Fri, 13 Jan 2012 01:08:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=RrFHTbmyNjrVkQdXemeV6i5/B2K0+E36qrLpe79xeNA=; b=dmkL268fc0OfFCzb+N6WPWI5YYzvttLa552Uz6NuZbX/4HA63d9BfeTAYeN7n87Rop VT5NSv9Niw6pidL6OS3LiyCXqlFu2kHuUxWaiCbhXyMtj45izYpfRSZAIkfMNUT9Figw zD9Il863TQSyfnk/QXeXJLJmQ2YOiDsGhkpG8= Original-Received: by 10.42.246.71 with SMTP id lx7mr1907797icb.54.1326445683024; Fri, 13 Jan 2012 01:08:03 -0800 (PST) Original-Received: by 10.50.57.131 with HTTP; Fri, 13 Jan 2012 01:08:03 -0800 (PST) In-Reply-To: <1326395505.2847.24.camel@kip-laptop> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.210.169; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0eGkV83D8 - c6fe538fdf02 - 20120113 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:73823 Archived-At: --===============1843353058== Content-Type: multipart/alternative; boundary=90e6ba3fd811c0232604b6653324 --90e6ba3fd811c0232604b6653324 Content-Type: text/plain; charset=UTF-8 On Thu, Jan 12, 2012 at 8:11 PM, Kip Warner wrote: > On Thu, 2012-01-12 at 11:13 +0100, Hans Hagen wrote: > > such a message comes from stored macros so there is no such > > information > > So when you have a book of hundreds of pages in length split up over > dozens of tex files and ConTeXt emits an error, how do you know what > file / line number to examine? > Usually the strategy is to isolate the culprit by including progressively lengthy chunks of tex from the begin to end and then narrowing the selection until you find a macro or paragraph. Then surround it with \tracingall ... \trancingnone and you have a *huge* amount of informations. (btw, discover where an error happens it's known to be problematic due the inherently asynchronous nature of TeX and the macro programming language, where expansion can be very hard to understand) -- luigi --90e6ba3fd811c0232604b6653324 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

On Thu, Jan 12, 2012 at 8:11 PM, Kip War= ner <kip@thevert= igo.com> wrote:
On Thu, 2012-01-12 at 11:13 +0100, Hans Hagen wrote:
> such a message comes from stored macros so there is no such
> information

So when you have a book of hundreds of pages in length split up over<= br> dozens of tex files and ConTeXt emits an error, how do you know what
file / line number to examine?
Usually the strategy i= s to isolate the culprit by including progressively lengthy=C2=A0 chunks of= tex
from the begin to end
and then narrowing the selection until yo= u find a macro or paragraph.
Then surround it with
\tracingall
...
\trancingnone
and you hav= e a *huge* amount of informations.

(btw, discover = where an error happens=C2=A0 it's=C2=A0 known to be problematic due the= inherently asynchronous nature of TeX
and the =C2=A0 macro programming language, where expansion can be=C2=A0 ver= y hard to understand)
--
luigi

--90e6ba3fd811c0232604b6653324-- --===============1843353058== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============1843353058==--