* debugging
@ 2008-11-11 10:45 Alan STONE
2008-11-11 11:08 ` debugging Taco Hoekwater
0 siblings, 1 reply; 10+ messages in thread
From: Alan STONE @ 2008-11-11 10:45 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 461 bytes --]
Hi,
What's the way to get a list of all definition assigned values in a compile
job ?
Ex: \def\myFirstParameter{one}
\def\mySecondParameter{two}
...
-> in log file (or other file), something like:
myFirstParameter=one
myFirstParameter=two
...
I tried \tracingmacros=1 but that's not what I'm looking for.
--
Best,
Alan
* TeX engine = LuaTeX
* ConTeXt minimals ver: 2008.56.06 19:11 MKIV fmt: 2008.11.10 int:
english/english
* Ubuntu 8.04 Hardy Heron
[-- Attachment #1.2: Type: text/html, Size: 575 bytes --]
[-- Attachment #2: Type: text/plain, Size: 487 bytes --]
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: debugging
2008-11-11 10:45 debugging Alan STONE
@ 2008-11-11 11:08 ` Taco Hoekwater
2008-11-11 13:03 ` debugging Alan STONE
0 siblings, 1 reply; 10+ messages in thread
From: Taco Hoekwater @ 2008-11-11 11:08 UTC (permalink / raw)
To: mailing list for ConTeXt users
Alan STONE wrote:
>
> I tried \tracingmacros=1 but that's not what I'm looking for.
\tracingassigns=1 is as close as you can get.
Otherwise, you will end up with extremely dangerous constructs
like this trick that may very well interfere with what you are
trying to debug:
\let\normaldef\def
\def\dumpDEF
{\immediate\write16
{\expandafter\string\theDEF=\expandafter\meaning\theDEF}}
\unexpanded\normaldef\def#1% yes, this redefines \def!
{\normaldef\theDEF{#1}\afterassignment\dumpDEF\normaldef#1}
Best wishes,
Taco
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: debugging
2008-11-11 11:08 ` debugging Taco Hoekwater
@ 2008-11-11 13:03 ` Alan STONE
2008-11-11 13:33 ` debugging Alan STONE
0 siblings, 1 reply; 10+ messages in thread
From: Alan STONE @ 2008-11-11 13:03 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1206 bytes --]
On Tue, Nov 11, 2008 at 12:08 PM, Taco Hoekwater <taco@elvenkind.com> wrote:
>
> Alan STONE wrote:
> >
> > I tried \tracingmacros=1 but that's not what I'm looking for.
> \tracingassigns=1 is as close as you can get.
Considering the enormous amount of information these \tracing* commands
blurp into the log file, I think I'll read Tolstoy's "War and Peace"
instead. ;O)
> Otherwise, you will end up with extremely dangerous constructs
> like this trick that may very well interfere with what you are
> trying to debug:
>
> \let\normaldef\def
> \def\dumpDEF
> {\immediate\write16
> {\expandafter\string\theDEF=\expandafter\meaning\theDEF}}
> \unexpanded\normaldef\def#1% yes, this redefines \def!
> {\normaldef\theDEF{#1}\afterassignment\dumpDEF\normaldef#1}
Thanks a lot Taco. This is better already, though still too much information
in the log file to be user friendly.
Would it be possible to restricts the output to the \def'\s which begin with
specific characters, for example "my" as in \def\my* ?
Or...
Do you know some tool (Windows/Linux) which enables to filter these from the
log file into a text file, or delete the unwanted ones from the log file ?
Best,
Alan
[-- Attachment #1.2: Type: text/html, Size: 1913 bytes --]
[-- Attachment #2: Type: text/plain, Size: 487 bytes --]
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: debugging
2008-11-11 13:03 ` debugging Alan STONE
@ 2008-11-11 13:33 ` Alan STONE
2008-11-11 13:39 ` debugging luigi scarso
2008-11-12 9:51 ` debugging Mojca Miklavec
0 siblings, 2 replies; 10+ messages in thread
From: Alan STONE @ 2008-11-11 13:33 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 318 bytes --]
On Tue, Nov 11, 2008 at 2:03 PM, Alan STONE
<software.list.1es9s@gmail.com>wrote:
>
> Do you know some tool (Windows/Linux) which enables to filter these from
> the
> log file into a text file, or delete the unwanted ones from the log file ?
>
Under Linux, grep should be able to do that. Under Windows ?
Best,
Alan
[-- Attachment #1.2: Type: text/html, Size: 657 bytes --]
[-- Attachment #2: Type: text/plain, Size: 487 bytes --]
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: debugging
2008-11-11 13:33 ` debugging Alan STONE
@ 2008-11-11 13:39 ` luigi scarso
2008-11-11 14:43 ` debugging Hans Hagen
2008-11-12 9:51 ` debugging Mojca Miklavec
1 sibling, 1 reply; 10+ messages in thread
From: luigi scarso @ 2008-11-11 13:39 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 438 bytes --]
On Tue, Nov 11, 2008 at 2:33 PM, Alan STONE
<software.list.1es9s@gmail.com>wrote:
> On Tue, Nov 11, 2008 at 2:03 PM, Alan STONE <software.list.1es9s@gmail.com
> > wrote:
>
>> Do you know some tool (Windows/Linux) which enables to filter these from
>> the
>> log file into a text file, or delete the unwanted ones from the log file ?
>>
>
> Under Linux, grep should be able to do that. Under Windows ?
>
maybe grep of cygwin ?
--
luigi
[-- Attachment #1.2: Type: text/html, Size: 1112 bytes --]
[-- Attachment #2: Type: text/plain, Size: 487 bytes --]
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: debugging
2008-11-11 13:39 ` debugging luigi scarso
@ 2008-11-11 14:43 ` Hans Hagen
2008-11-11 14:50 ` debugging Alan STONE
0 siblings, 1 reply; 10+ messages in thread
From: Hans Hagen @ 2008-11-11 14:43 UTC (permalink / raw)
To: mailing list for ConTeXt users
luigi scarso wrote:
>
>
> On Tue, Nov 11, 2008 at 2:33 PM, Alan STONE
> <software.list.1es9s@gmail.com <mailto:software.list.1es9s@gmail.com>>
> wrote:
>
> On Tue, Nov 11, 2008 at 2:03 PM, Alan STONE
> <software.list.1es9s@gmail.com
> <mailto:software.list.1es9s@gmail.com>> wrote:
>
> Do you know some tool (Windows/Linux) which enables to filter
> these from the
> log file into a text file, or delete the unwanted ones from the
> log file ?
>
>
> Under Linux, grep should be able to do that. Under Windows ?
>
> maybe grep of cygwin ?
or
mtxrun --script grep ...
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: debugging
2008-11-11 14:43 ` debugging Hans Hagen
@ 2008-11-11 14:50 ` Alan STONE
0 siblings, 0 replies; 10+ messages in thread
From: Alan STONE @ 2008-11-11 14:50 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 930 bytes --]
On Tue, Nov 11, 2008 at 3:43 PM, Hans Hagen <pragma@wxs.nl> wrote:
> luigi scarso wrote:
> >
> >
> > On Tue, Nov 11, 2008 at 2:33 PM, Alan STONE
> > <software.list.1es9s@gmail.com <mailto:software.list.1es9s@gmail.com>>
> > wrote:
> >
> > On Tue, Nov 11, 2008 at 2:03 PM, Alan STONE
> > <software.list.1es9s@gmail.com
> > <mailto:software.list.1es9s@gmail.com>> wrote:
> >
> > Do you know some tool (Windows/Linux) which enables to filter
> > these from the
> > log file into a text file, or delete the unwanted ones from the
> > log file ?
> >
> >
> > Under Linux, grep should be able to do that. Under Windows ?
> >
> > maybe grep of cygwin ?
>
> or
>
> mtxrun --script grep ...
This is a cool one...
http://www.wingrep.com
--
Best,
Alan
* TeX engine = LuaTeX
* ConTeXt minimals ver: 2008.56.06 19:11 MKIV fmt: 2008.11.10 int:
english/english
* Ubuntu 8.04 Hardy Heron
[-- Attachment #1.2: Type: text/html, Size: 1819 bytes --]
[-- Attachment #2: Type: text/plain, Size: 487 bytes --]
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: debugging
2008-11-11 13:33 ` debugging Alan STONE
2008-11-11 13:39 ` debugging luigi scarso
@ 2008-11-12 9:51 ` Mojca Miklavec
2008-11-14 15:48 ` debugging Alan STONE
1 sibling, 1 reply; 10+ messages in thread
From: Mojca Miklavec @ 2008-11-12 9:51 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Tue, Nov 11, 2008 at 2:33 PM, Alan STONE wrote:
> On Tue, Nov 11, 2008 at 2:03 PM, Alan STONE wrote:
> wrote:
>>
>> Do you know some tool (Windows/Linux) which enables to filter these from
>> the
>> log file into a text file, or delete the unwanted ones from the log file ?
>
> Under Linux, grep should be able to do that. Under Windows ?
This package is great:
http://gnuwin32.sourceforge.net
and grep is part of it.
Mojca
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2008-11-14 16:21 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-11 10:45 debugging Alan STONE
2008-11-11 11:08 ` debugging Taco Hoekwater
2008-11-11 13:03 ` debugging Alan STONE
2008-11-11 13:33 ` debugging Alan STONE
2008-11-11 13:39 ` debugging luigi scarso
2008-11-11 14:43 ` debugging Hans Hagen
2008-11-11 14:50 ` debugging Alan STONE
2008-11-12 9:51 ` debugging Mojca Miklavec
2008-11-14 15:48 ` debugging Alan STONE
2008-11-14 16:21 ` debugging Aditya Mahajan
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).