Skip to content

Commit a5012b9

Browse files
committed
Mention the extremely useful small_printf() function
It came in real handy while debugging an issue that strace 'fixed'. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent 1e0136e commit a5012b9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

winsup/cygwin/how-to-debug-cygwin.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,3 +126,9 @@ set CYGWIN_DEBUG=cat.exe:gdb.exe
126126
program will crash, probably in small_printf. At that point, a 'bt'
127127
command should show you the offending call to strace_printf with the
128128
improper format string.
129+
130+
9. Debug output without strace
131+
132+
If you cannot use gdb, or if the program behaves differently using strace
133+
for whatever reason, you can still use the small_printf() function to
134+
output debugging messages directly to stderr.

0 commit comments

Comments
 (0)