Visual C++ .NET Disassembly Window
-
Hello. Where is the option to view and debug source code directly in assembly mode via the Disassembly Window in Visual C++ .NET? Older versions including 6.0 has a menu item, View->Debug Windows->Disassembly. Thanks, Kuphryn
Whilst running in Debug mode, choose Debug->Windows-Disassembly, or alternatively press CTRL+ALT+D. The Disassembly mode is unavailable in Design (coding) mode. You must run the debugger in order to show/hide this window. -Antti Keskinen ---------------------------------------------- The definition of impossible is strictly dependant on what we think is possible.
-
Whilst running in Debug mode, choose Debug->Windows-Disassembly, or alternatively press CTRL+ALT+D. The Disassembly mode is unavailable in Design (coding) mode. You must run the debugger in order to show/hide this window. -Antti Keskinen ---------------------------------------------- The definition of impossible is strictly dependant on what we think is possible.
Okay. Thanks. I still cannot view the assembly code in debug mode. The error is "(Disassembly cannot be displayed in run mode.)." The problem is you cannot "debug" a module without running it. I need to be able to see the assembly code line by line. Kuphryn
-
Okay. Thanks. I still cannot view the assembly code in debug mode. The error is "(Disassembly cannot be displayed in run mode.)." The problem is you cannot "debug" a module without running it. I need to be able to see the assembly code line by line. Kuphryn
This is because you are "live" running the program in debug mode. In order to see the disassembly, you must set breakpoints into the code and fill the necessary requirements for the breakpoint to be reached (For example, if you set a breakpoint to a button click, you must manually click the button in order to reach the breakpoint). If you want to step through the entire code in debug mode, you must first run the program, then choose Debug->Break All, and Debug->Restart. This will take you to the first line of assembly code in the program, and you can use F10 to step forwards through the code. The reason why the assembly code is not shown while the program is 'live' is simple: the code would run before your eyes way too fast for you to follow it. That is why you must set breakpoints. When a break is reached, the cursor will stop on the line where the break is, and the disassembly window will show the assembly code lines residing in the vicinity of this code line, namely, the codes required to execute this procedure. So, you can only see the assembly code line by line if you set a breakpoint and the code reaches this point. If you want to step through the entire program (which will take AGES), then use Debug->Start, Debug->Break All, Debug->Restart. -Antti Keskinen ---------------------------------------------- The definition of impossible is strictly dependant on what we think is possible.
-
This is because you are "live" running the program in debug mode. In order to see the disassembly, you must set breakpoints into the code and fill the necessary requirements for the breakpoint to be reached (For example, if you set a breakpoint to a button click, you must manually click the button in order to reach the breakpoint). If you want to step through the entire code in debug mode, you must first run the program, then choose Debug->Break All, and Debug->Restart. This will take you to the first line of assembly code in the program, and you can use F10 to step forwards through the code. The reason why the assembly code is not shown while the program is 'live' is simple: the code would run before your eyes way too fast for you to follow it. That is why you must set breakpoints. When a break is reached, the cursor will stop on the line where the break is, and the disassembly window will show the assembly code lines residing in the vicinity of this code line, namely, the codes required to execute this procedure. So, you can only see the assembly code line by line if you set a breakpoint and the code reaches this point. If you want to step through the entire program (which will take AGES), then use Debug->Start, Debug->Break All, Debug->Restart. -Antti Keskinen ---------------------------------------------- The definition of impossible is strictly dependant on what we think is possible.