How Visual Studio 2008 displays assembly code for source code

Source: Internet
Author: User

1, create a new WIN32 console program, including precompiled headers, because this can not write code, of course, you can write a piece of code, or open the existing project. Just to illustrate the usage, so take the simplest example

2. Set a breakpoint at the return point of the main function, i.e., return 0

3, check the project configuration, tools, options, debugging and general, tick "Enable address level debugging", if not selected, Disassembly window is not available

4, if there is no disassembly option under the Debug window of the menu bar, click on the menu bar, tools-----Customize----debug to find "disassembly" drag it to the menu bar

5, make sure that the program is a debug version, not a release version, because I found the debug version and the release version of the assembly code gap is very large. Configuration Manager for menu bar generation ensures that the specified item is "Debug" and not "Release"

6, start Debugging (F5), when the program stops at the breakpoint, click on the menu bar debugging---window disassembly to display the Source Code Disassembly window

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.