--- how-to-debug-cygwin.txt.in Tue Jan 29 20:08:10 2002 +++ how-to-debug-cygwin.txt Tue Jan 29 20:17:50 2002 @@ -11,7 +11,9 @@ 1. The first thing you'll need to do is to build cygwin1.dll and your crashed application from sources. To debug them you'll need debug information, which -is normally stripped from executables. +is normally stripped from executables. You should also define the DEBUGGING +macro to enable some debug features. Debug from a console window (and not +from windows such as rxvt), as some debugging messages go to the console. 2. Create known-working cygwin debugging environment. - create a separate directory, say, c:\cygdeb, and put known-working @@ -41,6 +43,8 @@ such situation: -b enables buffering of output and reduces additional timeouts introduced by strace, and -m option allows you to mask certain classes of *_printf() functions, reducing timeouts even more. + Programs started by strace are started as if directly from Windows, and + not as if from a Cygwin shell or program. 5. Problems at early startup. Sometimes, something crashes at the very early stages of application