Source-level Debugging Under NTSD

ID: Q99053


The information in this article applies to:
  • Microsoft Win32 Software Development Kit (SDK) for Windows NT, versions 3.1, 3.5


SUMMARY

The following are the steps used for source-level debugging under NTSD:

  1. Compile using -Zi and -Od.


  2. Link using debug:full and debugtype:coff.


  3. Load the program into the debugger.


  4. Use s+ to change to source mode.

    -or-

    Use s& to change to mixed mode.


For a console application, type g main to get to the program start. For a GUI application, type "g WinMain" to get to the program start.

Type v .<number> to list source lines starting at <number>. For example, type the following
v .20
to see all lines starting at line 20.

Additional query words: 3.10 3.50

Keywords :
Version : NT:3.1,3.5
Platform : NT
Issue type :


Last Reviewed: January 10, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.