[Mono-list] prototype XSLT debugging patch ...

Joshua Tauberer jit at occams.info
Tue Nov 28 06:56:26 EST 2006


Atsushi Eno wrote:
> Here is the (improved?) patch based on yours. To enable template
> stack frame information:
> 
> MONO_XSLT_STACK_FRAME=
> 	stdout: write template call to stdout.
> 	stderr: write template call to stderr.
> 	error: enable stack frame in XsltException.

Hey, this is great.  Could we make it easier to activate for web
applications using System.Configuration (in addition to the environment
variable), since setting environment variables for mod_mono is tricky?
i.e.:

string env = Environment.GetEnvironmentVariable ("MONO_XSLT_STACK_FRAME");
if (env == null)
  env =
System.Configuration.ConfigurationSettings.AppSettings["MONO_XSLT_STACK_FRAME"];

I'm no expert on System.Configuration so there may be a better way...

-- 
- Josh Tauberer

http://razor.occams.info

"Yields falsehood when preceded by its quotation!  Yields
falsehood when preceded by its quotation!" Achilles to
Tortoise (in "Gödel, Escher, Bach" by Douglas Hofstadter)


More information about the Mono-list mailing list