How to see the actual compiler output?

In writing a VS2005 program, the IDE put contains MSIL pseudo code. When the program is started, the JIT compiler creates the actual X86 code to be executed in pieces.

If you are interested in looking at the actual product of the JIT compiler say for optimization puposes is there a way to look at this code? With the Vs2005 Disassember?

[350 byte] By [ReneeC] at [2007-12-24]
# 1
Hard

to find in the VB IDE. Let it hit a breakpoint. On the

"Debug" toolbar, click the arrow on the 6th button and select

Disassembly.

nobugz at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic Language...
# 2

You know what? Yesterday I wanted to see the code and I put this line in

input = input / 0

The compiler did not complain but must have omitted because the damned thing executed and I still didn't see the code.

Will your suggestion work if the assembly has been put together in release mode? Because I want to see release mode code.

ReneeC at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic Language...
# 3

I just wanted to clear up misstatements made by nobugz.

There is no disassebly option in the debug menu.

Insertion of a breakpoint in an assembly built in release mode, will generate a display in the callstack window.

Selection of the top item on the displayed callstack, and subsquent right clicking will show a context menu and the fifth item down is Disassembly.

ReneeC at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic Language...