summaryrefslogtreecommitdiff
path: root/doc/ref/scheme-using.texi
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2013-01-16 13:20:54 +0100
committerAndy Wingo <wingo@pobox.com>2013-01-16 18:11:47 +0100
commit36c210d14e8572939901b9251492a3f4bf94988c (patch)
tree0c9a76223f257b535966a26e5cd9880c4d60c0b3 /doc/ref/scheme-using.texi
parent3404ada0a695b7e9ea1e6221fb1531ebdd73c211 (diff)
downloadguile-36c210d14e8572939901b9251492a3f4bf94988c.tar.gz
trace: limit length of "| | | "... prefix
* module/system/vm/trace.scm (build-prefix): New helper. (print-application, print-return): Use the helper. (trace-calls-to-procedure, trace-calls-in-procedure): (trace-instructions-in-procedure, call-with-trace): Add #:max-indent argument, defaulting to the terminal width less 40 characters. * doc/ref/scheme-using.texi: Update `trace' docs. Based on a patch by Nala Ginrut.
Diffstat (limited to 'doc/ref/scheme-using.texi')
-rw-r--r--doc/ref/scheme-using.texi9
1 files changed, 7 insertions, 2 deletions
diff --git a/doc/ref/scheme-using.texi b/doc/ref/scheme-using.texi
index 4f9e6db82..e0f91af02 100644
--- a/doc/ref/scheme-using.texi
+++ b/doc/ref/scheme-using.texi
@@ -1,6 +1,6 @@
@c -*-texinfo-*-
@c This is part of the GNU Guile Reference Manual.
-@c Copyright (C) 2006, 2010, 2011, 2012
+@c Copyright (C) 2006, 2010, 2011, 2012, 2013
@c Free Software Foundation, Inc.
@c See the file guile.texi for copying conditions.
@@ -298,8 +298,13 @@ Time execution.
Profile execution.
@end deffn
-@deffn {REPL Command} trace exp
+@deffn {REPL Command} trace exp [#:width w] [#:max-indent i]
Trace execution.
+
+By default, the trace will limit its width to the width of your
+terminal, or @var{width} if specified. Nested procedure invocations
+will be printed farther to the right, though if the width of the
+indentation passes the @var{max-indent}, the indentation is abbreviated.
@end deffn
@node Debug Commands