Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

PART 6. Fun with Crash Dumps > Notepad Debugging

Notepad Debugging

Have you heard about the new method of visual notepad debugging? We don't even need a debugger, just a notepad. If not, here's a recipe:

  1. Open a buggy application executable file or a DLL file you suspect in notepad.exe.



  2. Change the font to Webdings.



  3. Search for a bang: '!' (a bug in Webdings font).



  4. Remove the bug and repeat the search.



  5. Remove that bug too.



  6. Find another bug and remove it too.



  7. Consider "Replace All" if there are too many bugs.



  8. Save the debugged file.

  9. Run it - if it crashes we need to do a postmortem analysis - may be we overfixed our bugs. Or we might see a transmutation, for example, in our case the 32-bit Win32 Application2Debug.exe became an MS-DOS application silently terminating after the launch:


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial