Microsoft KB Archive/99053

{|
 * width="100%"|

Source-level Debugging Under NTSD

 * }

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 &quot;g WinMain&quot; to get to the program start.

Type '''v. ''' to list source lines starting at. For example, type the following

"v .20" to see all lines starting at line 20.

Additional query words: 3.10 3.50

Keywords :

Issue type :

Technology : kbWin32SDKSearch kbAudDeveloper kbSDKSearch kbWin32sSearch kbWin32SDKNT310 kbWin32SDKNT350