Skip to content

Commit

Permalink
Mention the extremely useful small_printf() function
Browse files Browse the repository at this point in the history
It came in real handy while debugging an issue that strace 'fixed'.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
  • Loading branch information
dscho committed Sep 6, 2023
1 parent 6b376b9 commit 3e71002
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions winsup/cygwin/DevDocs/how-to-debug-cygwin.txt
Original file line number Diff line number Diff line change
Expand Up @@ -126,3 +126,9 @@ set CYGWIN_DEBUG=cat.exe:gdb.exe
program will crash, probably in small_printf. At that point, a 'bt'
command should show you the offending call to strace_printf with the
improper format string.

9. Debug output without strace

If you cannot use gdb, or if the program behaves differently using strace
for whatever reason, you can still use the small_printf() function to
output debugging messages directly to stderr.

0 comments on commit 3e71002

Please sign in to comment.