Debug the C # program in Vs and view memory, registers, and disassembly.

Source: Internet
Author: User

When debugging a c # program in vs2005, you may want to view the assembly code, memory, and registers of the C # code.

To view the disassembly code, right-click the code window and select "go to disassembly. In the assembly code window, you can follow F11 to execute code in a single step, so as to more accurately track code execution.

If you want to view the changes of the registers at the same time, click "debug"> "window"> "register" in. (This menu item is displayed only during the debugging process. For example, when the program is executed at a breakpoint, It is paused. If you still do not have a single menu item in the debugging status, click "Tools"> "Import and Export Settings" in Vs and select "reset all settings". Next, in this case, you can save the current settings or do not save them. I don't think it's okay. Next, select "Visual C # development settings" and "finish ". In this way, the "debug"-> "window"-> "register" menu items should be displayed. Remember to make sure that your program is in the debugging process .)

For details about how to view memory, click "debug"> "window"> "Memory"> "Memory 1"... "memory 4" (select one .). In the memory window, enter the address in the "Address" column and press enter to view the memory information at the address.

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.