From 73f2992a2e9ef1c96d45d9e90cc5e1f63a0afc92 Mon Sep 17 00:00:00 2001 From: Kurtis Rader Date: Sun, 15 May 2016 19:45:02 -0700 Subject: make debug() output more useful This change does several things. First, and most important, it allows dumping the "n" most recent stack frames on each debug() call. Second, it demangles the C++ symbols. Third, it prepends each debug() message with the debug level. Unrelated to the above I've replaced all `assert(!is_forked_child());` statements with `ASSERT_IS_NOT_FORKED_CHILD()` for consistency. --- doc_src/fish.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'doc_src') diff --git a/doc_src/fish.txt b/doc_src/fish.txt index bf9c3eb1..eb4d24ba 100644 --- a/doc_src/fish.txt +++ b/doc_src/fish.txt @@ -25,4 +25,6 @@ The following options are available: - `-v` or `--version` display version and exit +- `-D` or `--debug-stack-frames=DEBUG_LEVEL` specify how many stack frames to display when debug messages are written. The default is zero. A value of 3 or 4 is usually sufficient to gain insight into how a given debug call was reached but you can specify a value up to 128. + The fish exit status is generally the exit status of the last foreground command. If fish is exiting because of a parse error, the exit status is 127. -- cgit v1.2.3